Greasy Fork is available in English.
Chargement automatique des pages Web paginées suivantes et insertion dans la page en cours. Prend en charge des milliers de sites Web sans aucune règle.
这个案例还挺麻烦的,只能用规则了
{ "name": "上海石油天然气交易中心", "url": "^https?://www\\.shpgx\\.com/html/", "example": "https://www.shpgx.com/html/ChnLNGIndexHistory.html", "nextLink": "#page-next", "pageElement": "#tbody_content>tr", "init": "if (!doc) return; await input('#starttime', document.querySelector('#starttime').value); await input('#endtime', document.querySelector('#endtime').value); await click('#searchDataBtn'); await sleep(500);", "refreshByClick": "#searchDataBtn" }
上海石油天然气交易中心 历史数据翻页问题
测试链接:https://www.shpgx.com/html/ChnLNGIndexHistory.html
如果是通过时间段的方式检索,那么翻第二页的时候,是依照无检索的时候翻页的,时间跨度2022-01-01至2022-12-31的时候就可以发现。