This script is a Python program that facilitates downloading files from an Google Drive Index. It interacts with the specified index link, retrieves the file information, and downloads the files using the Aria2c download manager.
Credit goes to sanjit-sinha for creating the Bhadoo-Index-Scraper, which served as the basis for this script.
Before running the script, ensure that you have the following prerequisites:
- Python 3.x installed on your system.
- Aria2c installed on your system. Or download the executable from Aria2 Repository.
To use the Index Downloader script, follow these steps:
-
Clone or download the script to your local machine.
-
Open a terminal or command prompt and navigate to the script's directory.
-
Run the script using the following command:
python index_downloader.py -i <index_link> [-o <output_folder>] [-u <username>] [-p <password>]
Replace <index_link>
with the URL of the index you want to download files from.
Optional arguments:
-o, --output <output_folder>
: Specify the output folder where the downloaded files will be saved. If not provided, a folder named "Download" will be created in the current directory.-s, --simul <number>
: Specify the number of download simultaneous. If not provided, a default number(1) will be used.-u, --user <username>
: Provide a username for the index if it requires authentication. If not provided, a default username will be used.-p, --password <password>
: Provide a password for the index if it requires authentication. If not provided, a default password will be used.
Example usage:
python index_downloader.py -i http://example.workers.dev/0:/folder/ -o OUTPUT_FOLDER/ -u myusername -p mypassword
Please ensure that protect_file_link
is disabled in the settings of your index, otherwise errors may occur when attempting to download the files.
-
The script will start retrieving the file information from the index. It will display the progress and status of the process in the console.
-
Once the file information is retrieved, the script will start downloading the files using Aria2c. The downloaded files will be saved in the specified output folder or the default "Download" folder.