What's the best way to scrape cards data using Python? or How can I efficiently scrape cards data wit

20 Replies, 2012 Views

Hey noob here too! For scrape cards python, I used Pyppeteer (Puppeteer for Python). Works great for JS-heavy sites.

Example:

```python
import asyncio
from pyppeteer import launch

async def scrape_cards():
browser = await launch()
page = await browser.newPage()
await page.goto('your_url')
cards = await page.querySelectorAll('.card')
await browser.close()
```

Pagination? Just loop through URLs or click "next" with `page.click()`.

Messages In This Thread



Users browsing this thread: 1 Guest(s)