Pagetual

Carga automática de las siguientes páginas web paginadas e inserción en la página actual. Admite miles de sitios web sin ninguna regla.

< Opiniones de Pagetual

Puntuación: Bueno; el script funciona tal y como promete

§
Publicado: 15/11/2023

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

hoothinAutor
§
Publicado: 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"
    }

Publicar respuesta

Inicia sesión para responder.