Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glumia/openload_dl
A python library and CLI tool to download files from openload.co
https://github.com/glumia/openload_dl
docopt downloader openload python tqdm video youtube-dl
Last synced: about 2 months ago
JSON representation
A python library and CLI tool to download files from openload.co
- Host: GitHub
- URL: https://github.com/glumia/openload_dl
- Owner: glumia
- License: mit
- Created: 2017-04-24T14:28:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-04T20:35:04.000Z (over 2 years ago)
- Last Synced: 2024-04-24T02:44:35.852Z (5 months ago)
- Topics: docopt, downloader, openload, python, tqdm, video, youtube-dl
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 37
- Watchers: 8
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openload_dl
A python library and CLI tool which makes easy to download files from openload.co- [Installation](#Installation)
- [Examples](#Examples)# Installation
Ubuntu or Debian:sudo apt install python3-pip
pip3 install openload_dlWindows:
Install [Python](https://www.python.org/downloads/) (don't forget to check the "ADD TO PATH" option).
Then open the command prompt and type:pip3 install openload_dl
On both Ubuntu and Windows:Download the latest version of [geckodriver](https://github.com/mozilla/geckodriver/releases) ( for Firefox ) or [chromedriver](http://chromedriver.chromium.org/downloads) ( for Chrome ), extract it and add the executable to PATH or put it in the same directory of the script.
[In order for this script to work you need to have [Firefox](https://www.mozilla.org/it/firefox/new/) or [Chrome](https://www.google.com/chrome/) installed on your system.]
# Examples
## Command-line
Usage: openload_dl [OPTIONS] [URLS]...
Options:
--get-download-url Extract only file's download url
--preferred-browser [firefox|chrome]
Select the browser to use [default:
firefox]
--no-headless Show the browser
--chunk-size INTEGER Set the downloader chunk size in bytes
[default: 1000000]
-q, --quiet Don't print download progress information
--help Show this message and exit.## Python
>>> import openload_dl
>>> oload = openload_dl.OpenloadDownloader()
>>> oload.get_durl("https://openload.co/f/12345678900/myvideo.mp4") # Get a download url for the file
'https://123abcd.oloadcdn.net/dl/l/ism-abc123abc123/12345678900/myvideo.mp4'
>>> oload.download("https://openload.co/f/12345678900/myvideo.mp4")
myvideo.mp4: 5%|▌ | 5.00M/96.4M [00:13<03:45, 404kB/s]