Bypassing Ximalaya Download Restrictions with Cookies#
1. Downloading Ximalaya Audio on PC#
Use the Tampermonkey script to download Ximalaya audio. After logging in to a VIP account, you can download VIP audio albums.
Ximalaya Album Downloader (greasyfork.org)
There are limitations when logging in normally, and after downloading 600 audio tracks per day, you will be unable to continue playing.
It is recommended to use aria2 for downloading. After opening the aria2 software, click on the "Export Data" button on the script downloader page of the album to download the selected data in batches, without the need to click on each one individually. For specific methods, please refer to the script introduction.
2. Capturing Cookies with Mobile Devices#
I used Surge on iOS to capture packets, capturing HTTP packets. In the saved results, look for the results of the domain "xmc.ximalaya.com/xmlymain-login-web/login" and find the value of "1&device" in the request bar. This key-value pair can be used on the PC side to bypass the download restrictions.
3. Importing Key-Value Pairs#
Importing on the album page has no effect. It needs to be imported on the audio URL decryption page to take effect.
Press F12 on the page, and in the console, use the following command:
document.cookie='1&_device=xxx'
Replace "xxx" with the cookie captured from your own packet.
Alternatively, use Cookie-Editer to click "Add" and add the key-value pair "1&_device" with the corresponding cookie captured from the packet.
Continue using the download script to download without restrictions.