[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://ext.mdskip.taobao.com/extension/dealRecords.htm?_ksTS=1428389032876_5416&callback=jsonp5417&isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=2&&isg=BECBC88B90E3647DAF820513978C918E&isg2=ATU0gNhYtet1K2BIiQNl7nUrFWD1urXr",//URL 必需项
Method = "get",//URL 可选项 默认为Get
IsToLower = false,//得到的HTML代码是否转成小写 可选项默认转小写
Cookie = "t=12de865495a0e06a7702cef5146364dd; cna=Kb3pDNU4ITgCAdxzsnWkXhGb; tracknick=; ali_ab=220.115.178.117.1416286234808.5; lzstat_uv=2479485916964530595|2945527@2948565@2043323@3045821@2801066@2945730@2798379@2738597; thw=cn; cainiao_abtest=0; isg=83155AAEC40ADD86197DB3BC8A471D27; mt=ci%3D-1_0; _tb_token_=FYObrfntjHoS; cookie2=593a39c0a66fc970c8c787100b77332c; v=0",//字符串Cookie 可选项
Referer ="http://detail.yao.95095.com/item.htm?spm=a1z10.1-b.w5001-9509642184.3.HvveST&id=36472582293&scene=taobao_shop",//来源URL 可选项
Postdata = "",//Post数据 可选项GET时不需要写
Timeout = 100000,//连接超时时间 可选项默认为100000
ReadWriteTimeout = 30000,//写入Post数据超时时间 可选项默认为30000
UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",//用户的浏览器类型,版本,操作系统 可选项有默认值
ContentType = "text/html",//返回类型 可选项有默认值
Allowautoredirect = false,//是否根据301跳转 可选项
//CerPath = "d:\123.cer",//证书绝对路径 可选项不需要证书时可以不写这个参数
//Connectionlimit = 1024,//最大连接数 可选项 默认为1024
ProxyIp = "",//代理服务器ID 可选项 不需要代理 时可以不设置这三个参数
//ProxyPwd = "123456",//代理服务器密码 可选项
//ProxyUserName = "administrator",//代理服务器账户名 可选项
ResultType = ResultType.String
};
HttpResult result = http.GetHtml(item);
string html = result.Html;
string cookie = result.Cookie;
返回如下
[C#] 纯文本查看 复制代码
jsonp5417({html:" <table summary=\"成交记录\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"table-deal-record\" server-num=\"malldetailskip010178037152.n.et2\"> <colgroup> <col class=\"col-buyer\"/> <col class=\"col-goods\"/> <col class=\"col-amount\"/> <col class=\"col-price\"/> <col class=\"col-chargetime\"/> </colgroup> <tr> <th class=\"th-buyer\">买家<span class=\"tb-anonytip\">[登录后可见]</span></th> <th class=\"th-goods\">款式/型号</th> <th class=\"th-quantity\">数量</th> <th class=\"th-price\">价格</th> <th class=\"th-dealtime\">成交时间</th> </tr> <tr > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 梦<span class=tb-anonymous>**</span>性 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_3.gif\" title=\"41-90个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:17:01</p> </td> </tr> <tr class=\"odd\" > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 飘<span class=tb-anonymous>**</span>1 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_5.gif\" title=\"151-250个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:套餐二 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:17:00</p> </td> </tr> <tr > <td class=\"cell-align-l buyer\"> <div class=\"line\"> s<span class=tb-anonymous>**</span>5 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:16:28</p> </td> </tr> <tr class=\"odd\" > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 熊<span class=tb-anonymous>**</span>强 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> <a target=\"_blank\" href=\"http://vip.taobao.com\" title=\"V1会员\"><img src=\"http://gi3.md.alicdn.com/tps/i3/T1PbuIXclkXXXXXXXX-16-16.png\" alt=\"V1会员\"></a> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:12:38</p> </td> </tr> <tr > <td class=\"cell-align-l buyer\"> <div class=\"line\"> x<span class=tb-anonymous>**</span>1 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:12:06</p> </td> </tr> <tr class=\"odd\" > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 暮<span class=tb-anonymous>**</span>鄙 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> <a target=\"_blank\" href=\"http://vip.taobao.com\" title=\"V1会员\"><img src=\"http://gi3.md.alicdn.com/tps/i3/T1PbuIXclkXXXXXXXX-16-16.png\" alt=\"V1会员\"></a> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:10:39</p> </td> </tr> <tr > <td class=\"cell-align-l buyer\"> <div class=\"line\"> u<span class=tb-anonymous>**</span>q </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> <a target=\"_blank\" href=\"http://vip.taobao.com\" title=\"V2会员\"><img src=\"http://gi4.md.alicdn.com/tps/i4/T1FHuIXcNkXXXXXXXX-16-16.png\" alt=\"V2会员\"></a> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:10:13</p> </td> </tr> <tr class=\"odd\" > <td class=\"cell-align-l buyer\"> <div class=\"line\"> z<span class=tb-anonymous>**</span>s </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:09:43</p> </td> </tr> <tr > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 多<span class=tb-anonymous>**</span>8 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:07:22</p> </td> </tr> <tr class=\"odd\" > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 化<span class=tb-anonymous>**</span>荷 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:05:38</p> </td> </tr> <tr > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 走<span class=tb-anonymous>**</span>攉 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:02:56</p> </td> </tr> <tr class=\"odd\" > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 般<span class=tb-anonymous>**</span>蔑 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> <a target=\"_blank\" href=\"http://vip.taobao.com\" title=\"V1会员\"><img src=\"http://gi3.md.alicdn.com/tps/i3/T1PbuIXclkXXXXXXXX-16-16.png\" alt=\"V1会员\"></a> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">11:00:37</p> </td> </tr> <tr > <td class=\"cell-align-l buyer\"> <div class=\"line\"> s<span class=tb-anonymous>**</span>a </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> <a target=\"_blank\" href=\"http://vip.taobao.com\" title=\"V1会员\"><img src=\"http://gi3.md.alicdn.com/tps/i3/T1PbuIXclkXXXXXXXX-16-16.png\" alt=\"V1会员\"></a> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:套餐一 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">10:50:54</p> </td> </tr> <tr class=\"odd\" > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 我<span class=tb-anonymous>**</span>拉 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">10:47:17</p> </td> </tr> <tr > <td class=\"cell-align-l buyer\"> <div class=\"line\"> 富<span class=tb-anonymous>**</span>术 </div> <div class=\"line\"> <img src=\"http://pics.taobaocdn.com/newrank/b_red_2.gif\" title=\"11-40个买家信用积分\" border=\"0\" align=\"absmiddle\" class=\"rank\" /> <a target=\"_blank\" href=\"http://vip.taobao.com\" title=\"V2会员\"><img src=\"http://gi4.md.alicdn.com/tps/i4/T1FHuIXcNkXXXXXXXX-16-16.png\" alt=\"V2会员\"></a> </div> </td> <td class=\"cell-align-l style\"> 套餐类型:标准装 </td> <td class=\"quantity\"> 1 </td> <td class=\"price\"><em>¥268.00</em> <a title=\"活动促销 \" class=\"buyer-cu-icon\"></a> </td> <td class=\"dealtime\"> <p class=\"date\">2015-04-07</p> <p class=\"time\">10:43:20</p> </td> </tr> </table> <div class=\"pagination\"> <div class=\"page-bottom\"> <span class=\"page-info\"></span> <a class=\"page-prev J_TAjaxTrigger\" detail:params=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=1,showBuyerList\" href=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=1\"> <span>上一页</span> </a> <a href=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=1\" detail:params=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=1,showBuyerList\" class=\"J_TAjaxTrigger page-next\">1</a> <span class=\"page-cur\">2</span> <a href=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=3\" detail:params=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=3,showBuyerList\" class=\"J_TAjaxTrigger page-next\">3</a> <span class=\"page-break\">…</span> <a href=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=3\" detail:params=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?isOffline=&pageSize=15&isStart=false&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false&isOriginPrice=false&bidPage=3,showBuyerList\" class=\"J_TAjaxTrigger page-next\"><span>下一页</span></a> </div> </div> <p class=\"view-all\"><a id=\"J_LinkViewAll\" detail:params=\"http://ext.mdskip.taobao.com/extension/dealRecords.htm?bidPgae=1&isStart=true&isOffline=&pageSize=15&itemType=b&ends=1428887249000&starts=1428282449000&itemId=36472582293&soldTotalNum=1782&sellerNumId=1718086130&isFromDetail=yes&totalSQ=1992&sbn=16dc6a2ad8b14de9d32e5b3d4a730cec&isSecKill=false,showBuyerList\" class=\"J_TAjaxTrigger\" href=\"http://detail.tmall.com/item.htm?id=36472582293\">查看更多历史记录<ins></ins></a></p> ",type:"list"})
|