273952582 发表于 2011-3-7 10:19:06

au3能获取网页上的文字吗?

我下把http://tv.tudou.com/albumtop/top/listRank.html?cid=30这个网页的片名排行取得并存为TXT文件??

pcbar 发表于 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)

wsfda 发表于 2011-3-7 14:11:43

路过,正好我也需要,顶下pcbar

lpxx 发表于 2011-3-7 15:14:21


pcbar 发表于 2011-3-7 11:07 http://www.autoitx.com/images/common/back.gif


    谢谢,学习了!
页: [1]
查看完整版本: au3能获取网页上的文字吗?