分类 Miscellaneous 中的文章
Python zipfile Module Instantiation and Parsing
zipfile usage in Python, including how to read ZIP archives, inspect ZipInfo, extract files, write archives, and build ZIP files in memory.……
Summary of Python3 print function usage
print() usage, including basic output, old-style formatting examples, floating-point formatting, and output control with end and sep.……
Closing a Screen Session from Outside the Session
Yum Update Error 'rpmdb', Insufficient Space
yum update -y when Linux reports rpmdb open failed or runs out of disk space, including rebuilding the RPM database and cleaning old kernels.……
Decoding Xunlei Thunder Links: Python and JavaScript Conversion Examples
thunder:// Xunlei links, and gives both Python and JavaScript examples for encoding and decoding.……
Running Conda Command-Line Scripts on Windows
activate.bat pattern you can reuse.……
Accelerating Python Code with Numba to C++-like Speeds
@jit, @njit, @vectorize, and GPU-related features are most useful.……
Python3 Binary Number Representation and Bitwise Operations
Python implementation for Qianqian Music MP3 download
Entering the Qianqian Music homepage and selecting Jay Chou’s “Confession Balloon” reveals that it’s a 2016 song with no preview available, which is sad. Is there a way to get the MP3 file? The answer is yes. A runnable program for music download is available at the end of the article.
Without further ado, I opened the charts and chose a new song that could be previewed; “Sheng Pi Zi” was the first one I could listen to.
1. Analyze API information
Opening the developer tools, I found that music files are definitely submitted through an API. Among many requests, I found a request that could retrieve music files. See the image below:

Check the request details:
The songid parameter can be found in the current URL: http://music.taihe.com/song/611238837. It’s simple. from should be “web” or “app”, etc. The format defining the return data type doesn’t need to be changed. method doesn’t need to be changed. The _ parameter is a 13-digit timestamp. callback is the prefix of the returned JSON data. The 1546915161467 after the underscore is a 13-digit timestamp, while the preceding 17200943498528136486 is unknown. We’ll try to use the known parameters to see if we can retrieve information without changing the unknown content.
Python implementation for Qianqian Music MP3 download
Entering the Qianqian Music homepage and selecting Jay Chou’s “Confession Balloon” reveals that it’s a 2016 song with no preview available, which is sad. Is there a way to get the MP3 file? The answer is yes. A runnable program for music download is available at the end of the article.
Without further ado, I opened the charts and chose a new song that could be previewed; “Sheng Pi Zi” was the first one I could listen to.
1. Analyze API information
Opening the developer tools, I found that music files are definitely submitted through an API. Among many requests, I found a request that could retrieve music files. See the image below:
Check the request details:

The songid parameter can be found in the current URL: http://music.taihe.com/song/611238837. It’s simple. from should be “web” or “app”, etc. The format defining the return data type doesn’t need to be changed. method doesn’t need to be changed. The _ parameter is a 13-digit timestamp. callback is the prefix of the returned JSON data. The 1546915161467 after the underscore is a 13-digit timestamp, while the preceding 17200943498528136486 is unknown. We’ll try to use the known parameters to see if we can retrieve information without changing the unknown content.
Python to draw horizontal and vertical lines as dividing lines
hlines, vlines, axhline, and axvline, so you can add horizontal or vertical reference lines to plots more reliably.……
最新文章
- Beginner Guide: Auto-build and Deploy a Hugo Site with GitHub Actions
- Codex Project Rules: Use AGENTS.md to Keep AI Coding Consistent
- Python Log Triage: Use rg and uv to Find Nginx 5xx Errors Fast
- Connect Codex to LiteLLM with Nginx as One Model Gateway
- Write Self-Contained Python Scripts with uv and PEP 723
- Build a Sky Flap Browser Game with Phaser: Source Download to Local Run
- Secure Python MCP Server: Add Boundaries to AI Tool Calls
- 2026 Practical Python Workflow: Replace pip, venv, and pipx with uv
- 2026 Practical Guide: Build Your First MCP Server with Python
- rg Tutorial: Why Many Developers Use ripgrep Instead of grep