找回密码
 加入
搜索
查看: 2058|回复: 4

[系统综合] [已解决]请教如何获取该网站的下页内容

  [复制链接]
发表于 2013-4-5 16:57:07 | 显示全部楼层 |阅读模式
本帖最后由 kxing 于 2013-4-6 13:18 编辑

希望能通过程序获取到第n页的内容
他这个页面似乎只能post换页,不能在地址栏get方式。
http://t8.rbc.cn/category--s-id_77.html
请高人指点,多谢!
发表于 2013-4-5 19:49:48 | 显示全部楼层
_IELinkClickByText($oie,"下一页")
;~ http://t8.rbc.cn/category--s-id_77.html

#NoTrayIcon

#include <ie.au3>


main ()


Func main ()
        
        $oie = _IECreate("http://t8.rbc.cn/category--s-id_77.html")
        _IELinkClickByText($oie,"下一页")
        
EndFunc
 楼主| 发表于 2013-4-6 00:53:53 | 显示全部楼层
不是这种拉,我要的是get或post后台得到数据的。不希望通过ie打开得到。
发表于 2013-4-6 04:06:38 | 显示全部楼层

;第3页
$yeshu = 3
$xmlhttp = ObjCreate("Msxml2.xmlhttp") 
$xmlhttp.open("POST", 'http://t8.rbc.cn/category--s-id_77.html', False) 
$xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
$xmlhttp.send('p=' & $yeshu & '&id=77')
$para_txt = BinaryToString($xmlhttp.responseBody, 4)
ConsoleWrite($para_txt)
 楼主| 发表于 2013-4-6 13:17:12 | 显示全部楼层
感谢楼上,可以用了。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-7 16:44 , Processed in 0.077606 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表