Python Web Scraping: Working with Requests and Regular Expressions
Working with the Requests Library
Example 1: Basic POST Request
import requests
# Construct POST payload
payload = {
'username': 'admin',
'password': 'secret123'
}
# Send POST request
target_url = 'https://api.example.com/login'
result = requests.post(target_url, data=payload)
A simple POST request typically includes a dictionary of ...
Posted on Sun, 09 Aug 2026 16:12:37 +0000 by Michael Wright
Mastering JSON Serialization and HTTP Requests in Python
Datta Interchange: JSON Parsing and Type Mapping
Python's standard json module provides efficient tools for reading and writing structured data. When loading configuration or API responses, file are deserialized into native dictionaries and lists, allowing direct manipulation of nested values.
import json
def extract_nested_records(filepath):
...
Posted on Sat, 01 Aug 2026 16:58:09 +0000 by jayant