{"repo":"HasData/playwright-scraping","free":true,"listed":false,"github":"https://github.com/HasData/playwright-scraping","clone":"git clone https://github.com/HasData/playwright-scraping.git","description":"This repository demonstrates web scraping and browser automation using Playwright in both Python and Node.js. It includes scripts for common tasks such as scraping data, interacting with web elements, handling authentication, and managing errors.","language":"JavaScript","stars":14,"topics":["javascript","playwright","python","scraping","scraping-node","scraping-python"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"Playwright Web Scraping Examples (Python & Node.js) This repository contains practical web scraping examples using Playwright in both Python and Node.js . It’s organized to help you learn everything — from basics to advanced techniques. Table of Contents 1. Requirements 2. Project Structure 3. Web Scraping With Playwright - Basics - Scraping - Selectors - Interactions - Save Data - Auth - Browser - Errors Requirements Python 3.7+ or Node.js 18+ Playwright installed: Python Node.js Project Structure The project is organized into two main folders: one for Python scripts and one for Node.js. Both have identical folder structures and contain the same functionality, but in different languages (Python for python/ and Node.js for node/). Each script demonstrates a specific feature of Playwright and can be run independently. Basics This section has basic scripts that show how to launch a browser with Playwright, switch between headless and headful modes, and open multiple tabs in the same browser. The table below lists the main commands for that. Description Python Node.js ------------ -------- --------- Launch browser browser = await playwright.chromium.launch() const browser = await chromium.launch(); Headless mode launch(headless=False) launch({ headless: false }) Open multiple tabs context.new page() context.newPage() You can check out the full scripts in the project folder. Scraping This section contains scripts for extracting text, links, images, and working with complex elemen","default_branch":null,"files":null,"tree":[],"storefront":"/r/HasData","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HasData/playwright-scraping/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}