A Python script for batch downloading files from Lanzou Cloud (蓝奏云).
For a detailed introduction to the project, please see my blog post: Pi3's Notes
- Supports downloading from multiple Lanzou Cloud links
- Handles password-protected links
- Creates separate folders for each download link
- Utilizes multi-threading for faster downloads
- Customizable download path
- Python 3.x
- Required Python packages:
- requests
- beautifulsoup4
- Clone this repository:
git clone https://github.com/Pi3-l22/Lanzou_Download.git
- Install the required packages:
pip install requests beautifulsoup4
-
Edit the
download_path
inmain.py
to set your desired download location:download_path = r'D:\LanzouDownloads\\'
-
Create a text file named
File_Link.txt
in the same directory asmain.py
. Format the file as follows:Title1[FolderName1] https://wwvd.lanzoul.com/b030ok9y 密码:9cj9 Title2[FolderName2] https://wwvd.lanzoul.com/b030q0ge 密码:hktq
-
Run the script:
python main.py
- The script reads the Lanzou Cloud links and passwords from the text file.
- For each link, it:
- Retrieves necessary parameters from the webpage
- Sends a POST request to get file IDs and names
- Obtains download URLs for each file
- Creates a folder for the download
- Uses multi-threading to download all files in parallel
This script is for educational purposes only. Please respect the terms of service of Lanzou Cloud and the copyright of the files you're downloading.
This project is licensed under the MIT License - see the LICENSE file for details.