Stories from the Web Crawling trenches in network errors

Sending Multipart Form Data with Python Requests

Author: Mohan Ganesan

Date: Feb 3, 2024

When building web applications in Python, you may need to send multipart form data in an HTTP request. Here are some troubleshooting tips for sending multipart form data with Requests.

Retrying Failed Requests in Python Requests (with Code Examples!)

Author: Mohan Ganesan

Date: Oct 31, 2023

Learn how to implement a robust retry mechanism for handling request failures in Python using the Requests library. Understand different types of failures, configure retries with Sessions and HTTPAdapter, and build a custom retry wrapper. Improve the reliability of your applications despite network and server issues.

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!