Stories from the Web Crawling trenches in form data

Getting Started with HTTPX in Python: Practical Examples and Usage Tips

Author: Mohan Ganesan

Date: Feb 5, 2024

HTTPX is a powerful Python HTTP client that makes API calls, handles authentication, timeouts, and more. Easily make GET and POST requests, handle JSON, forms, files, and headers. Supports async requests and session reuse for optimal performance.

Sending JSON vs Form Data in Python Requests

Author: Mohan Ganesan

Date: Feb 3, 2024

When making HTTP requests in Python using the requests module, you can send request bodies in different formats like JSON or form-urlencoded data.

Sending Data in aiohttp Requests

Author: Mohan Ganesan

Date: Mar 3, 2024

Building web apps and APIs with aiohttp requires sending data. JSON, form data, file uploads, and custom headers are common methods.

Making HTTP POST Requests with Httpx in Python

Author: Mohan Ganesan

Date: Feb 5, 2024

Httpx library in Python provides a modern and intuitive HTTP client for making POST requests to APIs and web services. It handles request headers, form data, timeouts, retries, and more.

Fixing "Content-Type incorrect" Errors with Python Requests

Author: Mohan Ganesan

Date: Feb 3, 2024

When using Python Requests library, invalid Content-Type errors can occur due to incorrect format or missing header. Take care to set Content-Type correctly.

Fetching Content with aiohttp in Python

Author: Mohan Ganesan

Date: Mar 3, 2024

The aiohttp library is a powerful tool for making asynchronous HTTP requests in Python. This guide demonstrates practical examples of using aiohttp to fetch content, handle errors, set request headers, post form data, stream response content, configure timeouts, and provides practical tips for working with aiohttp.

Submitting Form Data with aiohttp in Python

Author: Mohan Ganesan

Date: Mar 3, 2024

Access and validate form data in aiohttp, store and process it, and handle errors to provide user feedback.

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!