苏飞论坛

 找回密码
 马上注册

QQ登录

只需一步,快速开始

分布式系统框架(V2.0) 轻松承载百亿数据,千万流量!讨论专区 - 源码下载 - 官方教程

HttpHelper爬虫框架(V2.7-含.netcore) HttpHelper官方出品,爬虫框架讨论区 - 源码下载 - 在线测试和代码生成

HttpHelper爬虫类(V2.0) 开源的爬虫类,支持多种模式和属性 源码 - 代码生成器 - 讨论区 - 教程- 例子

查看: 13759|回复: 7

[其他] 求助:webqq 查找群问题 错误返回{"retcode":100000}

[复制链接]
发表于 2013-7-16 09:52:53 | 显示全部楼层 |阅读模式
求助:webqq 查找群问题 错误返回{"retcode":100000}

[code=csharp]
        public bool SeekQun()
        {
            string vfwebqq = Regex.Match(objhttpItem.Cookie, "ptwebqq\\=(.*?);").Groups[1].Value;
            string url ="http://cgi.web2.qq.com/keycgi/qqweb/group/search.do?pg=1&perpage=1&all=123&c1=0&c2=0&c3=0&st=0&vfcode=&type=0&vfwebqq="+vfwebqq+"&t="+TimeHelper.ConvertDateTimeInt(DateTime.Now);
            HttpResult result = new HttpResult();
            objhttpItem.Method = "GET";
            objhttpItem.PostDataType = PostDataType.String;
            objhttpItem.URL = url;
            objhttpItem.UserAgent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)";
            objhttpItem.Accept = "*/*";
            objhttpItem.Referer = "http://cgi.web2.qq.com/proxy.html?v=20110412001&callback=1&id=1";
            objhttpItem.ContentType = "utf-8";
            result = http.GetHtml(objhttpItem);
            string data = result.Html;
            return false;
        }[/code]
能获取Cookie 以及get参数正确,就是返回不了正常的数据

正常数据如下:
  1. {"result":[{"MD":"0","TI":"证券从业资格考试①群","QQ":"844384249","RQ":"1269054744","CL":"30;","DT":"1359081362","UR":"http://qun.qq.com/air/#106662414","TA":"","GA":"0","GB":"1728","GC":"139","GD":"0","GE":"106662414","GF":"0","BU":"http://qun.qq.com/air/#106662414","TX":"2013年证券从业资格考试交流,最新考试教材、每日一练,\u003cfont  color=#C60A00\u003e123\u003c/font\u003e证券考试网http://www.\u003cfont  color=#C60A00\u003e123\u003c/font\u003ez","HA":"2","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":1909025231,"LEVEL":7},{"MD":"0","TI":"6006886","QQ":"6006240","RQ":"1095849806","CL":";","DT":"1356961221","UR":"http://qun.qq.com/air/#6006886","TA":"","GA":"0","GB":"1728","GC":"2","GD":"0","GE":"6006886","GF":"0","BU":"http://qun.qq.com/air/#6006886","TX":"\u003cfont  color=#C60A00\u003e123\u003c/font\u003e","HA":"3","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":3065578690,"LEVEL":7},{"MD":"0","TI":"永远的\u003cfont  color=#C60A00\u003e123\u003c/font\u003e班","QQ":"472211798","RQ":"1314365583","CL":"30;","DT":"1362372638","UR":"http://qun.qq.com/air/#31597392","TA":"","GA":"15","GB":"815","GC":"28","GD":"2","GE":"31597392","GF":"0","BU":"http://qun.qq.com/air/#31597392","TX":"打造优秀班级,创立美好团队。 好好学习,天天向上。 物竞天择,适者生存。","HA":"3","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":242478404,"LEVEL":5},{"MD":"0","TI":"网恋,你当真了吗/**","QQ":"360030929","RQ":"1257495996","CL":"23:10011;","DT":"1358335099","UR":"http://qun.qq.com/air/#95094731","TA":"","GA":"2","GB":"628","GC":"345","GD":"3","GE":"95094731","GF":"0","BU":"http://qun.qq.com/air/#95094731","TX":"\u003cfont  color=#C60A00\u003e123\u003c/font\u003e 此群已满 请加 95094551","HA":"2","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":3084571144,"LEVEL":5},{"MD":"0","TI":"\u003cfont  color=#C60A00\u003e123\u003c/font\u003e","QQ":"812691976","RQ":"1327022656","CL":"28:10026;","DT":"1361911206","UR":"http://qun.qq.com/air/#207587729","TA":"","GA":"0","GB":"471","GC":"563","GD":"2","GE":"207587729","GF":"0","BU":"http://qun.qq.com/air/#207587729","TX":"","HA":"2","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":2320958450,"LEVEL":0},{"MD":"0","TI":"\u003cfont  color=#C60A00\u003e123\u003c/font\u003e","QQ":"25909095","RQ":"1350056641","CL":"23:10013;","DT":"1358340669","UR":"http://qun.qq.com/air/#113664328","TA":"","GA":"120","GB":"420","GC":"1","GD":"2","GE":"113664328","GF":"0","BU":"http://qun.qq.com/air/#113664328","TX":"","HA":"3","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":1188779132,"LEVEL":5},{"MD":"0","TI":"\u003cfont  color=#C60A00\u003e123\u003c/font\u003e","QQ":"1044808778","RQ":"1330415090","CL":"26;","DT":"1361510837","UR":"http://qun.qq.com/air/#121513747","TA":"","GA":"3","GB":"290","GC":"1","GD":"3","GE":"121513747","GF":"0","BU":"http://qun.qq.com/air/#121513747","TX":"已拆","HA":"3","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":1500215485,"LEVEL":4},{"MD":"0","TI":"15046500123一群","QQ":"1011031233","RQ":"1285161165","CL":"25;","DT":"1358517432","UR":"http://qun.qq.com/air/#122988099","TA":"","GA":"1","GB":"776","GC":"75","GD":"1","GE":"122988099","GF":"0","BU":"http://qun.qq.com/air/#122988099","TX":"诚信立足龙江,实力见证一切。联系电话:15554087555(白立新)","HA":"2","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":1401977671,"LEVEL":5},{"MD":"0","TI":"15046500123二群","QQ":"1011031233","RQ":"1299508723","CL":"31;","DT":"1358517492","UR":"http://qun.qq.com/air/#139936185","TA":"","GA":"2","GB":"750","GC":"95","GD":"1","GE":"139936185","GF":"0","BU":"http://qun.qq.com/air/#139936185","TX":"诚信立足龙江,实力见证一切。联系电话:15046500123(白立新)","HA":"2","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":4285706025,"LEVEL":5},{"MD":"0","TI":"\u003cfont  color=#C60A00\u003e123\u003c/font\u003e","QQ":"133486611","RQ":"1308757624","CL":"23:10011;","DT":"1362368425","UR":"http://qun.qq.com/air/#161419346","TA":"","GA":"3","GB":"237","GC":"1","GD":"3","GE":"161419346","GF":"0","BU":"http://qun.qq.com/air/#161419346","TX":"聚集今朝丶义结同心丶堂系兄弟——聚义堂","HA":"2","HB":"0","HC":"0","HD":"0","HE":"0","HF":"0","PA":"","PB":"","PC":"","PD":"","GEX":2337188132,"LEVEL":4}],"retcode":0,"responseHeader":{"Status":"0","CostTime":"6022","TotalNum":"523618","CurrentNum":"10","CurrentPage":"2"}}
复制代码




1. 开通SVIP会员,免费下载本站所有源码,不限次数据,不限时间
2. 加官方QQ群,加官方微信群获取更多资源和帮助
3. 找站长苏飞做网站、商城、CRM、小程序、App、爬虫相关、项目外包等点这里
发表于 2013-7-16 09:59:14 | 显示全部楼层
就没有见你写Cookie呀,怎么会正确呢、
 楼主| 发表于 2013-7-16 10:33:10 | 显示全部楼层
站长苏飞 发表于 2013-7-16 09:59
就没有见你写Cookie呀,怎么会正确呢、

Cookie:
pt2gguin=o1449067313; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; PATH=/; DOMAIN=qq.com;,superuin=o1449067313; PATH=/; DOMAIN=ptlogin2.qq.com; HttpOnly,superkey=lLiuGz84xtCtprNZxx1C*t7*0k3pJ7fUgx*YDlEGNpg_; PATH=/; DOMAIN=ptlogin2.qq.com; HttpOnly,uin=o1449067313; PATH=/; DOMAIN=qq.com;,skey=@fC0QzLnPh; PATH=/; DOMAIN=qq.com;,ETK=; PATH=/; DOMAIN=ptlogin2.qq.com;,ptisp=ctc; PATH=/; DOMAIN=qq.com;,RK=/Tpu9oHaQ/; EXPIRES=Fri, 14-Jul-2023 02:32:21 GMT; PATH=/; DOMAIN=qq.com;,ptuserinfo=e9878de5ba86e8bfaae982a6e79aaee882a4; PATH=/; DOMAIN=ptlogin2.qq.com;,ptcz=5ded917945a5e791311e7d8b10bb1e0ad6fa9f545ec1e88dc3a46a9ef0dd6b3f; EXPIRES=Fri, 02-Jan-2020 00:00:00 GMT; PATH=/; DOMAIN=qq.com;,ptcz=; EXPIRES=Fri, 02-Jan-1970 00:00:00 GMT; PATH=/; DOMAIN=ptlogin2.qq.com;,airkey=; EXPIRES=Fri, 02-Jan-1970 00:00:00 GMT; PATH=/; DOMAIN=qq.com;,ptwebqq=a65733923f0a0cad9673e49adc4504415360fd346a1bb78442a8a24ff987f0bf; PATH=/; DOMAIN=qq.com;
 楼主| 发表于 2013-7-16 10:41:47 | 显示全部楼层
站长苏飞 发表于 2013-7-16 09:59
就没有见你写Cookie呀,怎么会正确呢、

是在这里给Cookie赋值的

是在这里给Cookie赋值的
是在这里给Cookie赋值的
发表于 2013-7-16 10:49:08 | 显示全部楼层
只知→堅持 发表于 2013-7-16 10:41
是在这里给Cookie赋值的

你格式化一下Cookie吧,也许是Cookie的问题,
 楼主| 发表于 2013-7-16 13:19:57 | 显示全部楼层
站长苏飞 发表于 2013-7-16 10:49
你格式化一下Cookie吧,也许是Cookie的问题,

QQ图片20130716131636.jpg 这里的Cookie为空获取不到最新的Cookie 是怎么回事哦!当没有  response.Headers["set-cookie"] 为空时就获取不到

 楼主| 发表于 2013-7-16 13:35:08 | 显示全部楼层
谁能帮我解决一下这个问题呢?
发表于 2013-8-29 11:59:13 | 显示全部楼层
比较感兴趣,想知道webqq哪个地方是加qq群的,找了一圈没找到
您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

QQ|手机版|小黑屋|手机版|联系我们|关于我们|广告合作|苏飞论坛 ( 豫ICP备18043678号-2)

GMT+8, 2024-12-27 20:20

© 2014-2021

快速回复 返回顶部 返回列表