apex1
Regular Member
- May 29, 2015
- 217
- 182
My scraper template is finally done.. and it's an absolute beast.
ALEXA RANK SCRAPER:
This script is 50-100x faster than using the standard Ubot browser. Requests and multiprocessing will tear through thousands of URLs in a very short time. Also, the script is STABLE, it handles all the potential errors and BS.. so it can keep running forever.
Hit me up if you have questions.
https://pastebin.com/AS0PmEUD
ALEXA RANK SCRAPER:
- Takes a list of URLs
- Uses multiprocessing to iterate through the list and create a process pool
- Checks server status
- Scrapes Alexa Rank
- Error handling
- Requests timeout
- Saves output to csv
- Outputs time it took to complete
- Barebones / very minimal code
This script is 50-100x faster than using the standard Ubot browser. Requests and multiprocessing will tear through thousands of URLs in a very short time. Also, the script is STABLE, it handles all the potential errors and BS.. so it can keep running forever.
Hit me up if you have questions.
https://pastebin.com/AS0PmEUD