Building an API Automation Framework with Excel and Requests
Framework Overview
Managing API test cases across multiple endpoints often leads to scattered Python files that become difficult to maintain. When an API changes, developers must locate and update corresponding test files individually. This framework addresses the problem by centralizing test data in Excel files, allowing test case updates with ...
Posted on Tue, 19 May 2026 11:53:19 +0000 by phphelpme
Building a Basic Web Scraper with Python
A web scraper automates the extraction of data from websites. The core process involves two primary steps: fetching web content and parsing the desired information.
To begin, install the requests library, which handles HTTP requests.
pip install requests
Many websites restrict automated access. To mimic a real browser, you need to set a User-A ...
Posted on Tue, 19 May 2026 09:30:13 +0000 by lorenzo-s
Using Docker with Python for Web Scraping: A Practical Guide
Python has emerged as one of the fastest-growing mainstream programming languages and ranks as the second most beloved language among developers according to the Stack Overflow 2019 survey. For developers working with .NET or Java, learning Python can serve as an excellent second language—especially given its powerful capabilities in areas like ...
Posted on Tue, 12 May 2026 21:27:19 +0000 by freelancer
Quick Python Web Scraping Guide: Choose Your Meal in Minutes
This process isn't technically complex—it's more about patience and attention to detail. That’s why many people choose web scraping as a side job. Though it’s time-consuming, the technical barrier is relatively low. After this lesson, you won't think web scraping is hard anymore. You may later encounter challenges like session management or byp ...
Posted on Mon, 11 May 2026 06:37:04 +0000 by sahel
Interacting with HTTP APIs Using Python Requests
InstallationInstall the package using pip:pip install requestsCore HTTP MethodsMethodDescriptiondelete(url, args)Sends a DELETE requestget(url, params, args)Sends a GET requesthead(url, args)Sends a HEAD requestpatch(url, data, args)Sends a PATCH requestpost(url, data, , args)Sends a POST requestput(url, data, args)Sends a PUT requestrequest(me ...
Posted on Sun, 10 May 2026 20:27:58 +0000 by JayFM
Handling Exceptions in Python
When debugging Python programs, exceptions are often raised. These can be due to mistakes made during programming or due to unavoidable conditions. In the former case, it's necessary to trace back to the error point using the exception's traceback and make corrections. For the latter, we can catch and handle the exceptions to prevent the progra ...
Posted on Sat, 09 May 2026 05:12:40 +0000 by weekenthe9
Django REST Framework Views: Requests, Responses, and View Classes
Request and Response Objects
Request
The request object passed to views in REST framework is not Django's standard HttpRequest. Instead, REST framework provides an extended Request class that inherits from HttpRequest.
REST framework includes Parser components that automatically parse incoming request data based on the Content-Type header. Whet ...
Posted on Thu, 07 May 2026 06:21:36 +0000 by djdog.us