Skip to content

testdrivenio/concurrent-web-scraping

Repository files navigation

Concurrent Web Scraping with Python and Selenium

Want to learn how to build this project?

Check out the blog post.

Want to use this project?

  1. Fork/Clone

  2. Create and activate a virtual environment

  3. Install the requirements

  4. Run the scrapers:

    # sync
    (env)$ python script.py headless
    
    # parallel with multiprocessing
    (env)$ python script_parallel_1.py headless
    
    # parallel with concurrent.futures
    (env)$ python script_parallel_2.py headless
    
    # concurrent with concurrent.futures (should be the fastest!)
    (env)$ python script_concurrent.py headless
    
    # parallel with concurrent.futures and concurrent with asyncio
    (env)$ python script_asyncio.py headless
  5. Run the tests:

    (env)$ python -m pytest test/test_scraper.py
    (env)$ python -m pytest test/test_scraper_mock.py

About

Building a Concurrent Web Scraper with Python and Selenium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy