Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

testdrivenio/concurrent-web-scraping

Open more actions menu

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.