Greasy Fork is available in English.
Perpetual pages - powerful auto-pager script. Auto fetching next paginated web pages and inserting into current page for infinite scroll. Support thousands of web sites without any rule.
< Σχολιασμός για τον κώδικα Pagetual
可以嘗試使用nextLinkByUrl
例如:
{
"name": "動產拍賣搜尋",
"url": "^https?://www\\.tpkonsale\\.moj\\.gov\\.tw/",
"nextLinkByUrl": [
"&PAGINATION_PAGE_NO=(\\d+)",
"&PAGINATION_PAGE_NO={$1+1}"
],
"pageElement": ".table_scroll"
}
請問這個網站的翻頁邏輯是
https://www.tpkonsale.moj.gov.tw/Chattel/Query?CONCLUSION=Y&PAGINATION_PAGE_NO=1&REQUERY=true&THE_USE=2&EXEC_DEPT_ID=&OPEN_BID_TIME_S=2020%2F12%2F01&OPEN_BID_TIME_E=
https://www.tpkonsale.moj.gov.tw/Chattel/Query?CONCLUSION=Y&PAGINATION_PAGE_NO=2&REQUERY=true&THE_USE=2&EXEC_DEPT_ID=&OPEN_BID_TIME_S=2020%2F12%2F01&OPEN_BID_TIME_E=
https://www.tpkonsale.moj.gov.tw/Chattel/Query?CONCLUSION=Y&PAGINATION_PAGE_NO=3&REQUERY=true&THE_USE=2&EXEC_DEPT_ID=&OPEN_BID_TIME_S=2020%2F12%2F01&OPEN_BID_TIME_E=
就是中間的PAGINATION_PAGE_NO=多少取決於第幾頁
我嘗試用抓取模式抓下一頁的按鈕是失敗的
要怎麼寫這樣的規則讓他順利自動翻頁呢?