Skip to content

Week 1 Day 1: Playwright web scraper for JavaScript-rendered sites - #3789

Open
slavapa wants to merge 1 commit into
ed-donner:mainfrom
slavapa:slavapa-week1-playwright-scraper
Open

Week 1 Day 1: Playwright web scraper for JavaScript-rendered sites#3789
slavapa wants to merge 1 commit into
ed-donner:mainfrom
slavapa:slavapa-week1-playwright-scraper

Conversation

@slavapa

@slavapa slavapa commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • Playwright fallback scraper for JavaScript-rendered websites (Week 1 Day 1 extra exercise)
  • Demo notebook comparing basic requests vs Playwright, then summarizing three sites
  • Works in Jupyter on Windows (handles existing event loop)

Files

  • week1/community-contributions/slavapa/scraper_playwright.py
  • week1/community-contributions/slavapa/day1_playwright_exercise.ipynb
  • week1/community-contributions/slavapa/requirements.txt
  • week1/community-contributions/slavapa/README.md

Test plan

  • uv pip install playwright && python -m playwright install chromium
  • Open day1_playwright_exercise.ipynb, select .venv kernel, run all cells
  • Verify kabbalahmedia.info returns more content with Playwright than with basic scraper

Week 1 Day 1 extra exercise: requests + Playwright fallback scraper with demo notebook for JS-heavy websites.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant