{"id":41916271,"url":"https://github.com/ericrav/playwright-web-scraping","last_synced_at":"2026-01-25T16:23:49.597Z","repository":{"id":258600746,"uuid":"870705069","full_name":"ericrav/playwright-web-scraping","owner":"ericrav","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-18T04:08:11.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-20T20:25:06.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericrav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-10T14:15:35.000Z","updated_at":"2024-10-18T04:08:15.000Z","dependencies_parsed_at":"2024-10-19T19:33:09.025Z","dependency_job_id":null,"html_url":"https://github.com/ericrav/playwright-web-scraping","commit_stats":null,"previous_names":["ericrav/playwright-web-scraping"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericrav/playwright-web-scraping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericrav%2Fplaywright-web-scraping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericrav%2Fplaywright-web-scraping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericrav%2Fplaywright-web-scraping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericrav%2Fplaywright-web-scraping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericrav","download_url":"https://codeload.github.com/ericrav/playwright-web-scraping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericrav%2Fplaywright-web-scraping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-25T16:23:48.923Z","updated_at":"2026-01-25T16:23:49.592Z","avatar_url":"https://github.com/ericrav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intro to Web Scraping\n\n## Setup\n\n**System requirements**\n- Node.js 18+\n- Windows 10+, Windows Server 2016+ or Windows Subsystem for Linux (WSL).\n- macOS 13 Ventura, or macOS 14 Sonoma.\n- Debian 11, Debian 12, Ubuntu 20.04 or Ubuntu 22.04, Ubuntu 24.04, on x86-64 and arm64 architecture.\n\n\n\n1. Clone the repo\n\n```\ngit clone https://github.com/ericrav/playwright-web-scraping.git\ncd playwright-web-scraping\n```\n\n2. Install Node and dependencies\n\nYou must have Node.js version \u003e= 18 to run Playwright and this repo.\nCheck your node version with `node -v` in the terminal.\nIf you don't have the right version, try installing [nvm](https://github.com/nvm-sh/nvm) (Node Version Manager) to install and use the latest version.\n\nThen, install the dependencies:\n\n```\nnpm install\n```\n\nThen, install browser binaries used by Playwright with:\n```\nnpx playwright install --with-deps\n```\n\nMore info: https://playwright.dev/docs/browsers\n\n\n3. Run example scraper\n\n```\nnpm run scrape\n```\n\nYou should see a Chromium browser window open and close automatically, a snippet of text printed in your terminal, and an image saved to the `./screenshots` directory. Now you're ready to scrape the web!\n\n## Workshop\n\nTo run your workshop scraper, run in the terminal:\n\n```\nnode scrapers/00-workshop.js\n```\n\n## REPL\n\nExperiment with Playwright functions in an interactive Node.js repl terminal (repl = \"read evaluate print loop\"). This will open the browser instance and Playwright inspector to show you what's happening.\n\n```\nnpm run repl\n```\n\nNote: The repl script is ran with the Playwright debugger, so make sure to click the \"Resume\" button in the browser inspector so your commands can actually execute.\n\n\n## Playwright\n\n### Debug\n\nUse the `PWDEBUG=inspector` environment variable to debug your script with the Playwright inspector:\n\n```\nPWDEBUG=inspector node scrapers/00-workshop.js\n```\n\nAdd `await page.pause();` in your script to pause as a specific step.\n\n\n### Codegen\n\n\n```\nnpx playwright codegen nyu.edu\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericrav%2Fplaywright-web-scraping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericrav%2Fplaywright-web-scraping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericrav%2Fplaywright-web-scraping/lists"}