通过登录自己的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