Using Multiprocessing to speed up web scraping - David Ten
Webscraping or calling APIs to collect data can take significant amounts of time due to the quantities of data involved. We previously saw how we could build a simple web scraper to collect data from Finviz. Depending on the number of tickers that we want to scan, this can take a significant amount of time.
Introduction Webscraping or calling APIs to collect data can take significant amounts of time due to the quantities of data involved. We previously saw how we could build a simple web scraper to collect data from Finviz . Depending on the number of tickers that we want to scan, this can take a significant amount of time. Multiprocessing One way to speed up the web scraping or API calls is to run multiple processes in parallel. The caveat is that the website that we are scraping has to allow us to query it frequently as we will be sending multiple requests from the same IP address. For API call
related reading
- Speed Up Web Scraping Using Concurrency and Parallelismscrapehero.com
- Multithreading and Multiprocessing in 10 Minutes | Towards Data Sciencetowardsdatascience.com
- How to Build a Web Crawler in Pythonzenrows.com
- Scraping Fish on Indie Hackersindiehackers.com
- Web Scraping 201: finding the APIgregreda.com
- Scrapismscrapism.lav.io
- Scrape LinkedIn Jobs using Python (Save Data in CSV)scrapingdog.com
- Crawling a billion web pages in just over 24 hoursandrewkchan.dev
- Multiprocessing - Wikipediaen.wikipedia.org
- Inside look at modern web browser (part 1) | Blog | Chrome for Developersdeveloper.chrome.com
- GitHub - public-apis/public-apis: A collective list of free APIsgithub.com
- Scrapy at a glance - Scrapy 2.17.0 documentationdocs.scrapy.org