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.2.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.2-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: putio-downloader-3.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ecaaa74b0b73402cbf0266a145c43012dbf80d636b20b36ea58532eb20e14f49
MD5 ed60010fcb3c435e666a9aba0eef3b00
BLAKE2b-256 d5d0bbe567525a4c57ee47efedfda957832f0c84af23ca3513d6462bd5f6e6a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: putio_downloader-3.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c449ab80f89e01eb8465543e341dfe2f971adaaf2bbc9d6ed685e84ed21443b5
MD5 ee81cbc0fda3e99b73276c720cd98975
BLAKE2b-256 6f0c851a4e13e6282e796d61830ba69122fb55efd94ae2b9184b873bcea6a19b

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