A CLI (Command Line Interface) tool to download all directories and files from a gofile.io link as a batch
- Download repository
git clone https://github.com/rkwyu/gofile-dl
- Install dependencies
cd ./gofile-dl
python -m pip install -r requirements.txt
usage: run.py [-h] [-f FILE] [-t NUM_THREADS] [-d DIR] [-p PASSWORD] [-x PROXY] [-i INCLUDES] [-e EXCLUDES] [url]
positional arguments:
url url to process (if not using -f)
options:
-h, --help show this help message and exit
-f FILE local file to process
-t NUM_THREADS number of threads (default: 1)
-d DIR output directory
-p PASSWORD password
-x PROXY proxy server (format: ip/host:port)
-i INCLUDES included files (supporting wildcard *)
-e EXCLUDES excluded files (supporting wildcard *)
Default output directory is ./output
Example 1: Download files from https://gofile.io/d/foobar
python run.py https://gofile.io/d/foobar
Example 2: Download files from https://gofile.io/d/foobar to directory /baz/qux
python run.py -d /baz/qux https://gofile.io/d/foobar
Example 3: Download files from https://gofile.io/d/foobar with password "1234" protected
python run.py -p 1234 https://gofile.io/d/foobar
Example 4: Download files from https://gofile.io/d/foobar with 4 threads
python run.py -t 4 https://gofile.io/d/foobar
Example 5: Download files from https://gofile.io/d/foobar except *.jpg, foo.bar files
python run.py -e "*.jpg" -e "foo.bar" https://gofile.io/d/foobar
Example 6: Download files from https://gofile.io/d/foobar including only *.png, except xyz.png files
python run.py -i "*.png" -e "xyz.png" https://gofile.io/d/foobar
echo "https://gofile.io/d/foobar" > input.txt
python run.py -f ./input.txt
This project is licensed under the MIT License