Skip to main content

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

Metadata

Release files for putio-downloader 3.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for putio-downloader 3.1.4
File Size Uploaded
putio-downloader-3.1.4.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for putio-downloader 3.1.4
File Interpreter ABI Platform
putio_downloader-3.1.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 14.6 kB

Release files / putio-downloader-3.1.4.tar.gz

Download URL putio-downloader-3.1.4.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b14f3c399c7ec24386b59cdd456f177d9fa0ab78cbdcc09c50720699bb57757a
BLAKE2b-256 checksum
How to use checksums
ded8a0b1090f214bffb1fb4fe9a0e872a213fe3637ccacc6965cec2127f89808
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / putio_downloader-3.1.4-py2.py3-none-any.whl

Download URL putio_downloader-3.1.4-py2.py3-none-any.whl
Size 8.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d44f3a77e665be5c429b9432b25f110635dd385166698d538657fad0e8f7e388
BLAKE2b-256 checksum
How to use checksums
748a6e1efce2e34f94100c2c066829917853eeeef8380dc56ccd299e1a403bc1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

3.1.4 This release

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page