how to scrape the infinte long javascript render (dynamic page content) #498
-
I want to scrape this page, https://www.ecb.europa.eu/press/pubbydate/html/index.en.html?year=2024 which is quite long; how can I utilise 🔄 Full-Page Scanning: Simulates scrolling to load and capture all dynamic content, perfect for infinite scroll pages. to first load and then scrape to markdown. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
was able to do it async def scrape_ecb_publications():
if name == "main": |
Beta Was this translation helpful? Give feedback.
was able to do it
`python
import asyncio
from crawl4ai import AsyncWebCrawler, BrowserConfig, CrawlerRunConfig, CacheMode
async def scrape_ecb_publications():
# Configure the browser settings
browser_config = BrowserConfig(headless=True, java_script_enabled=True)