Re: [請問] 要如何批次點選網頁?
經過多次的試驗,
我發現新程式好像沒有作用耶...
下面這是之前第一個方法, 不用迴圈的最笨方法, 但是卻有效!
-------------------------------------------------------------
URL =
(
http://www.wretch.cc/album/album.php?id=Wretchclass&book=1
http://www.wretch.cc/album/album.php?id=Wretchclass&book=2
http://www.wretch.cc/album/album.php?id=Wretchclass&book=3
http://www.wretch.cc/album/album.php?id=Wretchclass&book=4
http://www.wretch.cc/album/album.php?id=Wretchclass&book=5
http://www.wretch.cc/album/album.php?id=Wretchclass&book=6
http://www.wretch.cc/album/album.php?id=Wretchclass&book=7
http://www.wretch.cc/album/album.php?id=Wretchclass&book=8
http://www.wretch.cc/album/album.php?id=Wretchclass&book=9
http://www.wretch.cc/album/album.php?id=Wretchclass&book=10
http://www.wretch.cc/album/album.php?id=Wretchclass&book=11
http://www.wretch.cc/album/album.php?id=Wretchclass&book=12
http://www.wretch.cc/album/album.php?id=Wretchclass&book=13
http://www.wretch.cc/album/album.php?id=Wretchclass&book=14
http://www.wretch.cc/album/album.php?id=Wretchclass&book=15
http://www.wretch.cc/album/album.php?id=Wretchclass&book=16
http://www.wretch.cc/album/album.php?id=Wretchclass&book=17
http://www.wretch.cc/album/album.php?id=Wretchclass&book=18
http://www.wretch.cc/album/album.php?id=Wretchclass&book=19
http://www.wretch.cc/album/album.php?id=Wretchclass&book=20
http://www.wretch.cc/album/album.php?id=Wretchclass&book=21
http://www.wretch.cc/album/album.php?id=Wretchclass&book=22
http://www.wretch.cc/album/album.php?id=Wretchclass&book=23
http://www.wretch.cc/album/album.php?id=Wretchclass&book=24
http://www.wretch.cc/album/album.php?id=Wretchclass&book=25
http://www.wretch.cc/album/album.php?id=Wretchclass&book=26
http://www.wretch.cc/album/album.php?id=Wretchclass&book=27
http://www.wretch.cc/album/album.php?id=Wretchclass&book=28
http://www.wretch.cc/album/album.php?id=Wretchclass&book=29
http://www.wretch.cc/album/album.php?id=Wretchclass&book=30
http://www.wretch.cc/album/album.php?id=Wretchclass&book=31
http://www.wretch.cc/album/album.php?id=Wretchclass&book=32
http://www.wretch.cc/album/album.php?id=Wretchclass&book=33
http://www.wretch.cc/album/album.php?id=Wretchclass&book=34
http://www.wretch.cc/album/album.php?id=Wretchclass&book=35
http://www.wretch.cc/album/album.php?id=Wretchclass&book=36
http://www.wretch.cc/album/album.php?id=Wretchclass&book=37
http://www.wretch.cc/album/album.php?id=Wretchclass&book=38
http://www.wretch.cc/album/album.php?id=Wretchclass&book=39
http://www.wretch.cc/album/album.php?id=Wretchclass&book=40
http://www.wretch.cc/album/album.php?id=Wretchclass&book=41
http://www.wretch.cc/album/album.php?id=Wretchclass&book=42
)
Loop, Parse, URL, `n
URLDownloadToFile, %A_LoopField%, %A_Temp%\_AddAccessCount.tmp
FileDelete, %A_Temp%\_AddAccessCount.tmp ; 刪除暫存檔
MsgBox, 執行完畢
-------------------------------------------------------------------
但是這方法.........有點冏
不過送出以後, 我看相簿的人氣確實都有增加,
但是用下面的方法就完全無效.....(註:我測試的時候有換IP讓他可以重計)
--------------------------------------------------------
Album_num_min := 1 ; 相簿編號最小值
Album_num_max := 43 ; 相簿編號最大值
Counter := Album_num_min ; 計數器
Loop
{
IF(Counter <= Album_num_max) ; 計數器小於等於相簿編號最大值才執行
{
URL := "http://www.wretch.cc/album/album.php?id=Wretchclass&book="Counter
; 目標網址和相簿編號
; MsgBox, %URL% ; 此行debug專用
Counter++ ; 計數器加一
URLDownloadToFile, %A_LoopField%, %A_Temp%\_AddAccessCount.tmp
}
else break ; 計數器大於相簿編號最大值則停止
}
FileDelete, %A_Temp%\_AddAccessCount.tmp ; 刪除暫存檔
MsgBox, 執行完畢
--------------------------------------------------------------
很怪, 不跑就是不跑...麻煩大家再多給點指導...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.69.150.30
※ 編輯: GaijiL 來自: 210.69.150.30 (01/12 15:20)
推
01/12 15:26, , 1F
01/12 15:26, 1F
→
01/12 15:28, , 2F
01/12 15:28, 2F
→
01/12 15:30, , 3F
01/12 15:30, 3F
→
01/12 15:33, , 4F
01/12 15:33, 4F
推
01/12 15:34, , 5F
01/12 15:34, 5F
→
01/12 15:37, , 6F
01/12 15:37, 6F
討論串 (同標題文章)
完整討論串 (本文為第 5 之 5 篇):
2
8
EzHotKey 近期熱門文章
PTT數位生活區 即時熱門文章