找回密码
 加入
搜索
查看: 2606|回复: 3

[网络通信] au3能获取网页上的文字吗?

[复制链接]
发表于 2011-3-7 10:19:06 | 显示全部楼层 |阅读模式
我下把http://tv.tudou.com/albumtop/top/listRank.html?cid=30这个网页的片名排行取得并存为TXT文件??
发表于 2011-3-7 11:07:11 | 显示全部楼层
#include <IE.au3>
#include <Array.au3>

$a = 'http://tv.tudou.com/albumtop/top/listRank.html?cid=30'
$oIE = _IECreate($a, 1, 0, 1, -1)
$itxt = _IEBodyReadHTML($oIE)

$table = _IETableGetCollection($oIE, 0)
$oInput = _IETableWriteToArray($table) ;读取指定表格内的数据,写入到数组
_ArrayDisplay($oInput, "表单内容", 0, 1) ;显示数组

_IEQuit($oIE)
发表于 2011-3-7 14:11:43 | 显示全部楼层
路过,正好我也需要,顶下pcbar
发表于 2011-3-7 15:14:21 | 显示全部楼层
pcbar 发表于 2011-3-7 11:07



    谢谢,学习了!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-16 02:35 , Processed in 0.075465 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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