Skip to content

votiethuy/hercules

Repository files navigation

Hercules

Program that can be used to download data from multiple sources and protocols to local disk

Dependency

  • Python 3.6

Instruction

Virtualenv

python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt

For deactivate

deactivate

TEST

python3 setup.py test

Example

Default script will download to folder downloads in current path.

Download from HTTP

python3 hercules/cli.py download https://i.pinimg.com/564x/07/ae/16/07ae164da80a7168c59a01c41bfdb74a.jpg

Download from FTP

python3 hercules/cli.py download ftp://206.189.83.200/files/agoda.jpg

Download from SFTP

python3 hercules/cli.py download sftp://206.189.83.200//home/agoda_sftp_user/agoda.jpg

Download list urls in file

python3 hercules/cli.py download-from-urls-file urls.txt

If want to change destination, add env parameter FOLDER_DOWNLOAD, example:

FOLDER_DOWNLOAD=custom_download python3 hercules/cli.py download https://i.pinimg.com/564x/07/ae/16/07ae164da80a7168c59a01c41bfdb74a.jpg

About

Program that can be used to download data from multiple sources and protocols to local disk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages