Skip to main content

Download all files from your put.io account recursively with aria2c

Project description

Build Status

put.io-aria2c-downloader

Python script that sends put.io download links to aria2c for download

Install

This setup assumes you have aria2c up with rpc running

pip install putio-downloader

Usage

Usage: putio-download [OPTIONS]

  CLI entrypoint for put.io downloader

Options:
  --oauth-token TEXT          [required]
  --keep-folder-structure
  --root-watch-dir INTEGER    [required]
  --aria2c-secret-token TEXT  [required]
  --incomplete-dir TEXT       [required]
  --complete-dir TEXT         [required]
  --watch-folders TEXT        [required]
  --rpc-url TEXT              [required]
  --version
  -q, --quiet
  -v, --verbose
  --config FILE               Read configuration from PATH.
  --help                      Show this message and exit.

Configuration

If you don't want to pass those options on the command line, you can work with a config file to pass all or just some of the following:

oauth_token = 'XXXXXXXX'
keep_folder_structure = 'true'
root_watch_dir = 0
incomplete_dir = '/download/incomplete'
aria2c_secret_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
complete_dir = '/download/complete'
rpc_url = 'https://example.com:6800/rpc'
watch_folders = ['isos', 'news', 'videos']

For windows, directories must follow windows' directory formatting, ie.

incomplete_dir = 'C:\\download\\incomplete'
complete_dir = 'C:\\download\\complete'

crontab

Run the download script on an interval so you don't miss out on any of your files

*/10 * * * * putio-download --config ~/myconfig.ini >> ~/putio.log 2>&1

To prevent multiple instances of putio-download from running, consider using a wrapper script like the following:

#!/bin/bash
COUNT=`ps -ef | grep putio-download | grep -v grep | wc -l`
if [ $COUNT == 0 ]; then
    putio-download --config ~/config.ini
else
	echo "already running..."
fi

If you do use a script like this, make sure to update the crontab to point to it

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

putio-downloader-3.1.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

putio_downloader-3.1.4-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file putio-downloader-3.1.4.tar.gz.

File metadata

  • Download URL: putio-downloader-3.1.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for putio-downloader-3.1.4.tar.gz
Algorithm Hash digest
SHA256 b14f3c399c7ec24386b59cdd456f177d9fa0ab78cbdcc09c50720699bb57757a
MD5 809181bb83bc8f6afb8ee7bc988c199b
BLAKE2b-256 ded8a0b1090f214bffb1fb4fe9a0e872a213fe3637ccacc6965cec2127f89808

See more details on using hashes here.

File details

Details for the file putio_downloader-3.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: putio_downloader-3.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for putio_downloader-3.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d44f3a77e665be5c429b9432b25f110635dd385166698d538657fad0e8f7e388
MD5 269bf1400b6509eaa8373f2122f233a1
BLAKE2b-256 748a6e1efce2e34f94100c2c066829917853eeeef8380dc56ccd299e1a403bc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page