Pagetual

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.

< Feedback on Pagetual

Review: Good - script works

§
Posted: 15. 11. 2023

上海石油天然气交易中心 历史数据翻页问题
测试链接:https://www.shpgx.com/html/ChnLNGIndexHistory.html
如果是通过时间段的方式检索,那么翻第二页的时候,是依照无检索的时候翻页的,时间跨度2022-01-01至2022-12-31的时候就可以发现。

hoothinAuthor
§
Posted: 16. 11. 2023

这个案例还挺麻烦的,只能用规则了

    {
        "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"
    }

Post reply

Sign in to post a reply.