Music Comment Analysis and Visualization with Django
Data Collection Process
Music streaming platforms contain valuable user feedback. We colleect this data using Python web scraping techniques. The following example demonstrtaes fetching comments from a music platform:
import requests
from bs4 import BeautifulSoup
def get_song_comments(track_id):
api_endpoint = f"https://api.music-serv ...
Posted on Sun, 07 Jun 2026 16:55:13 +0000 by Restless
Comprehensive Guide to HTML Agility Pack: A Flexible .NET HTML Parser
Introduction
HTML Agility Pack (HAP) is a robust and flexible .NET library designed for parsing and manipulating HTML documents. This article provides an overview of its capabilities, loading mechanisms, selector usage, node manipulation, traversal, and attribute handling.
Official Resources
Official Website: http://html-agility-pack.net/
NuGe ...
Posted on Wed, 03 Jun 2026 18:03:10 +0000 by BobLennon
Advanced Python Web Scraping for TV Show Information and Search
This article demonstrates how to create a Python scraper to collect online TV show data and implement advanced search functionality. We use requests and BeautifulSoup for scraping, and pandas for data processing and storage.
#### 1. Scraping Online TV Show Information
First, we need a website that provides TV show listings, assuming we can lega ...
Posted on Wed, 03 Jun 2026 17:41:08 +0000 by ridiculous
Web Scraping with Feapder: Architecture, Configuration, and Browser Rendering
Framework Overviewfeapder is a robust Python scraping framework that simplifies data extraction through four built-in spider templates: AirSpider, Spider, TaskSpider, and BatchSpider. It natively supports resumable crawling, alert notifications, browser rendering, and large-scale data deduplication. Deployment and scheduling are managed via the ...
Posted on Tue, 02 Jun 2026 16:22:41 +0000 by Ekano
Extracting Structured Data from HTML with Python's BeautifulSoup
To install the library along with a high-performence parser:
pip install beautifulsoup4 lxml
Begin by importing the class and initializing the parser with your markup:
from bs4 import BeautifulSoup
markup = """
<article class="product-listing">
<header>
<h1 id="main-title">Electronics ...
Posted on Mon, 25 May 2026 21:15:27 +0000 by forum
Using CrawlSpider for Automated Web Scraping in Scrapy
Overview
When scraping an entire website like Qiushibaike (Chinese joke site), you have two approaches:
Method 1: Use Scrapy's base Spider class with recursive crawling (manual request callbacks).
Method 2: Use CrawlSpider for automated link extraction and crawling (cleaner and more efficient).
This guide covers:
CrawlSpider introduction
Crawl ...
Posted on Sun, 24 May 2026 19:45:48 +0000 by sheraz
Python Web Scraping Fundamentals: Request Handling and Network Operations
GET Requests with Dictionary Parameters
When making GET requests with query parameters, we can construct URLs dynamically using dictionaries:
import urllib.request
import urllib.parse
import string
def get_params():
base_url = "http://www.baidu.com/s"
params = {
"query": "中文",
" ...
Posted on Sat, 23 May 2026 17:18:26 +0000 by tj71587
Applying XPath Expressions with Python's lxml Library
Installation
Install the library using pip:
pip install lxml
XPath Core Concepts
Node Types
XPath defines seven node types: element, attribute, text, namespace, processing instruction, comment, and the document (root) node. An XML document is represented as a node tree, with the root of the tree being the document or root node.
Consider this s ...
Posted on Wed, 20 May 2026 18:13:14 +0000 by alego
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
Introduction to the Scrapy Framework for Web Scraping
This article explores the fundamentals of web scraping using Python, covering aspects from basic browser automation to the powerful Scrapy framework.
Web Scraping with Selenium
Selenium is a popular tool for browser automation, enabling the simulation of user interactions with web pages. The following example demonstrates how to use Selenium wi ...
Posted on Sun, 17 May 2026 23:33:31 +0000 by strago