Surprisingly difficult Infinite scroll problem #1738
|
Hi All, I've been banging my head on this till the wee hours and figured wiser minds may have better insight if this is a simple fix or a deeper dive. Here's my current best working code: Let me know if you have any thoughts/suggestions |
Replies: 2 comments
|
The issue is that A few things to try: 1. Use
|
|
I encountered the same problem.When I simulated the pull-down action using Crawl4AI version 0.9.1, I initially did not observe the pull-down behavior in the viewport. Even using the newer method, |
The issue is that
scan_full_page=Truescrolls the page, but infinite scroll sites like KSL Classifieds load new items via API calls triggered by scroll position — and the default scroll speed is often too fast for the content to load before the next scroll happens.A few things to try:
1. Use
js_codewith manual scroll + wait loopThis gives you full control over the scroll behavior: