playwright-pool

Demonstration on how to use async python to control multiple playwright browsers for web-scraping (by Granitosaurus)

Playwright-pool Alternatives

Similar projects and alternatives to playwright-pool

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better playwright-pool alternative or higher similarity.

playwright-pool reviews and mentions

Posts with mentions or reviews of playwright-pool. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-13.
  • Is Selenium still a good choice?
    3 projects | /r/webscraping | 13 Jul 2022
    But to summarize it - puppeteer and playwright are superior to Selenium. Mostly because they both have modern, async APIs. When it comes to API itself Playwright is a great choice, though it comes with a lot of default cruft (browser parameters etc) that make scrapers easier to identify. Async support is really important too as there's a lot of IO blocking in browser automation. With async API you can launch multiple asynchronous browser tabs and do something in one while the other is loading - which drastically speeds up web scraping. I published a short demo on github to illustrate this: playwright-pool if you want to learn more about async.
  • The End of Python Web Scraping
    1 project | /r/webscraping | 14 Jun 2022
    I hadn't seen any particularly good implementations of distributed Playwright systems like Selenium grid yet. That being said, one killer feature of Playwright is async support. Since most of scraping time is waiting for IO blocks (page to load etc) having a single process pool of browsers is super easy in Playwright. I wrote this small demo few months ago that illustrates this idea: https://github.com/Granitosaurus/playwright-pool
  • Instagram doesn't show any content without login
    1 project | /r/webscraping | 26 May 2022
    But yeah, Selenium is pretty slow but only because of all IO blocks not because of something internal (for the most part). If you want to speed browser automation you need an async client or lots of thread/subprocess code. For example, playwright for python has async client and I have a playwright-pool demo code which illustrates that you can have really good scrape speeds just by switching to async code!
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 7 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic playwright-pool repo stats
3
11
0.0
over 2 years ago

Granitosaurus/playwright-pool is an open source project licensed under GNU General Public License v3.0 only which is an OSI approved license.

The primary programming language of playwright-pool is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com