Greasy Fork is available in English.

Pagetual

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.

< Commentaires sur Pagetual

Avis: Bon - le script fonctionne correctement

§
Posté le: 15/11/2023

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

hoothinAuteur
§
Posté le: 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"
    }

Poster une réponse

Connectez-vous pour poster une réponse.