• 如何获取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
    
  • 相关阅读:
    jdk环境一键配置
    IIS 浏览aspx页面出现 无法显示 XML 页
    ASP.NET MVC(三)
    ASP.NET MVC(二)
    ASP.NET MVC (一)
    Fatal error: Call to a member function bind_param() on a non-object in
    Eclipse字符集设置方式
    mysql 管理工具
    win7 IIS发布项目遇到的问题
    php 环境的搭建
  • 原文地址:https://www.cnblogs.com/happy-Chen/p/3711361.html
Copyright © 2020-2023  润新知