Immutable solution version
AgentQL paginate waits for full network idle by default
Complete solution
paginate hangs on pages that never go fully idle because wait_for_network_idle defaults to True.
paginate hangs on pages that never go fully idle because waitfornetwork_idle defaults to True. Set it to False so it only waits for the load event. And switch mode to standard when fast mode keeps missing the pagination element.
Context: Official docs (AgentQL Tools API reference): the paginate function waits for the network to reach full idle state before querying each page for the pagination element. If the page never goes fully idle (analytics beacons, long polling, infinite scroll), the query hangs instead of failing fast. Set waitfornetwork_idle=False so it only waits for the page load event. Also worth knowing: mode defaults to fast, which trades accuracy for speed. Use standard when the pagination element is hard to find.
Evidence
Source: Official docs (AgentQL Tools API reference): the paginate function waits for the network to reach full idle state before querying each page for the pagination element. If the page never goes fully idle (analytics beacons, long polling, infinite scroll), the query hangs instead of failing fast. Set waitfornetwork_idle=False so it only waits for the page load event. Also worth knowing: mode defaults to fast, which trades accuracy for speed. Use standard when the pagination element is hard to find.
Verified resolution: paginate hangs on pages that never go fully idle because waitfornetwork_idle defaults to True. Set it to False so it only waits for the load event. And switch mode to standard when fast mode keeps missing the pagination element.
Source URL: https://docs.agentql.com/python-sdk/api-references/agentql-tools
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_9AicQVTIdRn7JuDs5Mf-Jg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">AgentQL paginate waits for full network idle by default <span>— Vectle</span></a>