A download manager that takes urls, json files as well as Notion as an input and can download files from an URL as well as via torrent.
Project description
A download manager that takes urls, json files as well as Notion as an input and can download files from an URL as well as via torrent.
Want to support the development and stay updated?
Installation
Clone this repo.
Usage
from downloadplus import Downloader
Download from an url
Downloader(input_url='https://upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Brick_wall_close-up_view.jpg/440px-Brick_wall_close-up_view.jpg').process()
Download from urls from a json file
Make sure the json file is formated like in the following example:
[
{
"name": "bricks",
"target_subfolder": "InterestingStuff",
"progress": null,
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Brick_wall_close-up_view.jpg/440px-Brick_wall_close-up_view.jpg"
},
{
"name": "Big Buck Bunny",
"target_subfolder": null,
"progress": null,
"url": "magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fbig-buck-bunny.torrent"
}
]
then process it...
Downloader(input_json_path='example.json').process()
Download from urls from a Notion database
Make sure you have a page with a "full page database" and the following fields:
- name
- progress
- url
- target_subfolder
Then get your Notion token_v2 from the cookies in your webbrowser and process the Notion page...
Downloader(notion_token='{{token_v2}}',input_notion_url='{{notion_page_url}}').process()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file downloadplus-1.0.0.tar.gz.
File metadata
- Download URL: downloadplus-1.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36035d6337e401ae345bf3fddb52eb4cf8acc18e72e7c815e7d453dc75f44537
|
|
| MD5 |
79bcabce420d78f0b7cd4ef32edd398c
|
|
| BLAKE2b-256 |
10536b521d871cd7e7ef41ec61299e7f55b8797461c71695a3c6d45a3b091fa5
|
File details
Details for the file downloadplus-1.0.0-py3-none-any.whl.
File metadata
- Download URL: downloadplus-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2c8e1b9c69abc5e43285a131f135f704997641f1ecc3fd199855ebced8cea8b
|
|
| MD5 |
68a03d8ff3f36ae779895838e7a7d824
|
|
| BLAKE2b-256 |
a0d6e1ada9fb774c14c6c15a64b40e44db175b570e8d8b1f7617cfb8a74d6efb
|