ahk爬虫

;ahk爬虫
;爬取十个页面
if !A_IsAdmin
{
	Run *RunAs "%A_ScriptFullPath%"
	ExitApp
}
pwb := ComObjCreate("InternetExplorer.Application") ;创建IE对象
pwb.visible:=true  ; 设置IE对象为可见
loop,10
{
    postindex:=8471+A_Index-1
    ;url=http://www.autoahk.com/archives/%postindex%  ;传统附值
    url:= "http://www.autoahk.com/archives/" . postindex
    pwb.Navigate(url) ;导航至网页
    while pwb.busy or pwb.ReadyState != 4 ;Wait for page to load
    {
        Sleep, 100
    }
    Var:=pwb.document.getElementsByClassName("post-title").item[0].InnerText ;Get classname and Array value
    if (Var=="未找到")
    {
    }
    else
    {
        MsgBox,%var%
    }

}



给TA捐赠
共{{data.count}}人
人已捐赠
其他案例

ahk抓抓工具

2020-3-26 13:40:25

其他案例

AHK简单加密解密

2020-3-26 13:52:02

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索