Stories from the Web Crawling trenches in request body

Sending String Data in Request Body with Python Requests

Author: Mohan Ganesan

Date: Feb 3, 2024

Learn how to send string data in the request body with Python requests library for making HTTP requests.

Inspecting Requests in Python with the Requests Library

Author: Mohan Ganesan

Date: Feb 3, 2024

The Python Requests library makes sending HTTP requests simple. Use request.headers to view the headers sent in a Requests request. Access the request body with request.body. Set json instead of data parameter to have readable body printed.

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!