Essential Python Concepts for Developers
Overview
Python is a versatile, interpreted, high-level language. Its syntax emphasizes readability and efficient code structure, making it distinct from curly-brace languages like C++. This summary highlights key structural differences and fundamental utilities.
Data Structures
Lists: Ordered, mutable collections defined with [].
Tuples: Immu ...
Posted on Wed, 04 Nov 2026 16:41:38 +0000 by regexpert
Extracting and Analyzing Xiaohongshu Comment Data
The comment data for analysis includes user nickname, user ID, comment level, and comment content.
Data Extraction Process
The target content is retrieved via XHR requests, specifically through the comment endpoint. Pagination is managed using a cursor parameter. The logic for constructing the request URL is as follows:
def get_comment_url(note ...
Posted on Tue, 03 Nov 2026 16:24:01 +0000 by Vball
Using the HTTPX Library for Web Scraping in Python
Introduction to HTTPX for Web Requests
HTTPX is a modern HTTP client library for Python that offers many similarities with the popular requests library. This article explores how to utilize HTTPX for web scraping tasks with practical examples.
Basic HTTP Requests
Making HTTP requests with HTTPX follows a straightforward approach similar to requ ...
Posted on Sat, 17 Oct 2026 16:04:32 +0000 by PHPMagician
Build a .NET Web Scraper for Job Listings on Lagou
Automating data extraction from recruitment platforms using point-and-click tools often introduces maintenance overhead and performance bottlenecks. A more efficient strategy involves intercepting and replicating the underlying network traffic. By inspecting the browser developer tools during a search operation, it becomes clear that pagination ...
Posted on Wed, 14 Oct 2026 16:44:09 +0000 by sanam
Web Scraping Baidu Tieba Posts with Python
Basic Implementation
Extract post content from Baidu Tieba by URL and save comments localy.
URL Structure Analysis
Baidu Tieba post URLs follow a consistent pattern: https://tieba.baidu.com/p/[POST_ID]
View only original poster's comments: append ?see_lz=1
View all comments: appand ?see_lz=0
Pagination: add &pn=[PAGE_NUMBER]
Implementatio ...
Posted on Tue, 06 Oct 2026 16:30:41 +0000 by argoSquirrel
Web Scraping with Python Regular Expressions and HTTPX
Matching Target Content
Using parentheses () creates capture groups for extractign specific string segments. Each marked subexpression corresponds to a numbered group, accessible via the group() method with the group index.
import re
text_content = 'Hello 1234567 World_This is a Regex Demo'
match_pattern = re.match('^Hello\s(\d+)\sWorld', text ...
Posted on Tue, 06 Oct 2026 16:21:06 +0000 by aashcool198
Implementing Web Scrapers for Baidu Search Using Python
Selenium-Based Approach
Direct HTTP requests to Baidu often trigger security verification challenges. Selenium provides browser automation capabilities for web testing and data extraction tasks. It supports multiple programming languages including Python, Java, and C# for controlling browser behavior through code that simulates user interaction ...
Posted on Sun, 27 Sep 2026 16:01:08 +0000 by aspbyte
Automating Web Challenge Authentication with Selenium WebDriver
Web security exercises frequently enforce multi-layered defenses, requiring explicit user authentication prior to exposing subsequent puzzle stages. When dealing with dynamically generated session tokens or complex anti-scraping measures, manual HTTP request crafting often fails without extensive reverse engineering. Browser autmoation framewor ...
Posted on Thu, 24 Sep 2026 16:19:12 +0000 by patrikG
Automated IP Extraction from FOFA Free Tier Using Python Requests and lxml
Step 1: Construct and Fetch the First Page
To retrieve initial search results from FOFA’s free interface, encode the query string in Base64 and issue an HTTP GET request. The example below searches for assets matching the app="thinkphp" fingerprint.
import requests
import base64
query = 'app="thinkphp"'
base_url = 'https:// ...
Posted on Thu, 24 Sep 2026 16:06:02 +0000 by lli2k5
Anti-Crawling Techniques: Request Header Manipulation
Anti-Crawling Processing
Crawler: Using technical methods to batch obtain data from the internet
Anti-crawling: Using technical methods to prevent others from obtaining data from your website
Anti-anti-crawling: Using technical methods to bypass the opponent's anti-crawling strategies
Request Header Anti-crawling
User-Agent: A field in the HTTP ...
Posted on Wed, 23 Sep 2026 16:06:09 +0000 by goldbug