Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AJAX Pagination#998

Unanswered
Aswath1709 asked this question inQ&A
Jul 1, 2025· 1 comment
Discussion options

I’m trying to scrape a website that loads more products via AJAX when I click next. The base URL stays the same , how can I extract all items?

You must be logged in to vote

Replies: 1 comment

Comment options

ScrapeGraphAI can handle AJAX-loaded content by using browser automation via the ChromiumLoader class, which supports JavaScript rendering and scrolling—both essential for scraping dynamic pages where the URL doesn't change. You can use FetchNode or FetchNodeLevelK with ChromiumLoader to fetch content after all items are loaded. For many sites, enabling scrolling (with theascrape_playwright_scroll method) will trigger AJAX loading and let you extract all products once the page is fully rendered.

If the site requires clicking a "next" button (not just scrolling), ScrapeGraphAI doesn't have a built-in node for simulating clicks, so you may need to extend ChromiumLoader or use Playwright directly to automate those clicks and collect the content after each interaction.

Make sure Playwright is installed and configure your FetchNode or graph to use JS support and scrolling as needed. Example usage and configuration details for these nodes are in the docs and codebase, but there’s no out-of-the-box solution for generic AJAX pagination via button clicks yet. For most infinite scroll or lazy-load cases, scrolling with ChromiumLoader is the recommended approach (ChromiumLoader details).

To reply, just mention@dosu.


How did I do?Good |Irrelevant |Incorrect |Verbose |Hallucination |Report 🐛 |Other  Join Discord Share on X

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@Aswath1709

[8]ページ先頭

©2009-2025 Movatter.jp