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
Extracting Audio Files with Python Web Scraping
To extract audio files from websites, Python's requests library can be used to send HTTP requests and retrieve data. The process involves identifying audio URLs from network requests and saving the files locally.
First, inspect the network activity of a target webpage using browser developer tools. For example, on a music site like gequbao.com, ...
Posted on Thu, 14 May 2026 15:19:10 +0000 by uatec
Making HTTP Requests with Vue Resource
Introduction to Vue Resource
Vue Resource is a Vue.js plugin that provides HTTP client functionality for making web requests, similar to jQuery's AJAX methods. It supports various HTTP methods and JSONP requests.
Supported HTTP Methods
The plugin provides shorthand methods for common HTTP opertaions:
get: {method: 'GET'}
save: {method: 'POST'} ...
Posted on Thu, 14 May 2026 08:47:57 +0000 by slava_php
Creating a Reusable Ajax Function in JavaScript
The core of a custom Ajax utility involves creaitng an XMLHttpRequest object and managing its lifecycle. Below is a function designed to handle asynchrnoous HTTP requests with configuration options.
/**
* Configuration object structure for the custom Ajax function.
* @typedef {Object} AjaxConfig
* @property {string} method - HTTP request met ...
Posted on Fri, 08 May 2026 22:13:03 +0000 by asmon