Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 890 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 890 Bytes

Batch download files

Download files in batches to the specified directory by config file.

Download & Run (Mac or Linux)

# clone source code
git clone [email protected]:iportman/bdfiles.git
cd bdfiles
# enter venv env (Optional)
source venv/bin/activate
# install requirements
pip install -r requirements.txt
# run
python main.py

Write into requirements.txt

pipreqs --force .

generate Microsoft Windows executable file

pyinstaller -F -n dbfiles_v0.0.1.exe --distpath . main.py

Config File

The configuration file conf.yml must be in the same directory as the running file (.exe or main.py)

configuration as follows

  • save_dir: The directory that you want to save
  • download_url_path: The path prefix of the download URL, except for the last file name
  • download_files: The last file name of the url, supports multiple file names