如何获取qq空间最近访问人列表

通过登录自己的qq号,获取最近访问人信息
在aspx或者winform怎么实现啊

------解决方案--------------------
帮顶 没弄过. 
------解决方案--------------------
用webclient控件可以模拟登录, 登录后打开"最近访问人"的功能页面,下载回来正则取出即可啦 
------解决方案--------------------
http://g.qzone.qq.com/cgi-bin/friendshow/friendshow_font_recent_visitor?uin=号码 
------解决方案--------------------
1. /// <summary>
 /// 获得验证码
/// </summary>
 /// <param name="url">验证码地址</param>
 /// <param name="encoding">编码</param>
 /// <param name="mycookie">cookie</param>
 /// <returns></returns>
 public system.drawing.image getimg(string url, string encoding,cookiecontainer mycookie)
 { 
 system.drawing.image img = null;
 httpwebrequest myrequest = (httpwebrequest)webrequest.create(url); 
 myrequest.credentials = credentialcache.defaultcredentials;
 myrequest.cookiecontainer = mycookie;
 myrequest.accept = "*/*"; 
 myrequest.method = "get";
 myrequest.useragent = "mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1; gtb6; .net clr 2.0.50727; ciba)";
 myrequest.contenttype = "application/x-www-form-urlencoded";
 myrequest.keepalive = true;
 myrequest.usedefaultcredentials = true; 

 httpwebresponse response = (httpwebresponse)myrequest.getresponse(); 
 stream responsestream = response.getresponsestream();
 img = system.drawing.image.fromstream(responsestream);
 streamreader readstream = new streamreader(responsestream, system.text.encoding.getencoding(encoding)); 
 string pagecheckstring = readstream.readtoend();
 return img;
 } 

搜索此文相关文章:如何获取qq空间最近访问人列表
此文链接:http://www.makaidong.com/ASPNET%E6%8A%80%E6%9C%AF/568431.shtml

 

转载于:https://www.cnblogs.com/happy-Chen/p/3711361.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值