zoukankan      html  css  js  c++  java
  • 采集(未测试)

      string dltUrl = "http://caipiao.taobao.com/lottery/order/united_hall.htm?spm=0.0.0.0.DDPcSQ&lottery_type=3D";
    
                HttpHelper objhttp    =   new HttpHelper();    //参数对象      
                HttpItem  objHttpItem =   new HttpItem()            
                {               
                    URL = dltUrl,                           
                    Method = "GET",           
                };
                HttpResult result = objhttp.GetHtml(objHttpItem);    //取Html        
                string html = result.Html;
    
                string tb_token = result.Cookie.Substring(result.Cookie.IndexOf("HttpOnly,_t")+20);
                string[] tb_token_array = tb_token.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
    
                dltUrl = "http://caipiao.taobao.com/lottery/order/united_hall.htm?_tb_token_=" + tb_token_array[0] + "&page=2&lottery_type=3D&sort_obj=process&sort=desc&change_sort=&lowAmount=&highAmount=&play_type=0&issue=2013185&status=1&amountSec=0-0&commissionRate=-1&creator=";
                objHttpItem = new HttpItem()                   //参数对象 
                {
                    URL = dltUrl,
                    //  Encoding = "gb2312",
                    Method = "GET",
                    Cookie = objHttpItem.Cookie,
                };            //取Html          
                result = objhttp.GetHtml(objHttpItem);
                html = result.Html;
  • 相关阅读:
    负数之美
    css重设
    编码问题
    wed的各种前端打印方法(3)CSS
    表单
    学习前端心得
    去除input,a,按键链接时出现的虚线方法
    加载事件js代码
    深入C#数据类型
    查找
  • 原文地址:https://www.cnblogs.com/romanticcrystal/p/13175251.html
Copyright © 2011-2022 走看看