Stories from the Web Crawling trenches in urllib2

Python's URL Handling Libraries compared - urllib vs requests

Author: Mohan Ganesan

Date: Nov 17, 2023

Python's URL handling libraries have evolved over time, from urllib to urllib2 to urllib3 and finally to requests. Each library offers different features and capabilities, making it important to choose the right one for your needs.

Simplifying HTTP Requests in Python: urllib2 vs urllib vs requests

Author: Mohan Ganesan

Date: Feb 3, 2024

Making HTTP requests in Python: from urllib2 to requests. urllib2 - Python's Default HTTP Client. urllib - A Minor Improvement. requests - A Simple Yet Powerful Library.

Difference between urllib and urllib2

Author: Mohan Ganesan

Date: Feb 6, 2024

urllib for simple HTTP requests, urllib2 for robust HTTPS, redirects, custom headers, and error handling.

Tired of getting blocked while scraping the web?

ProxiesAPI handles headless browsers and rotates proxies for you.
Get access to 1,000 free API credits, no credit card required!