Convenient command line and library wrapper for youtube-dl.
Project description
Convenient command line and library wrapper for youtube-dl.
Latest release 20200521: Initial PyPI release.
The youtube-dl tool and associated youtube_dl Python module
are very useful for downloading media from various websites.
However, as an end user who almost never streams because of my
soggy internet link, I find fetching several items is quite serial and
visually noisy.
This module provides a command line tool ydl which:
- runs multiple downloads in parallel with progress bars
- prints the downloaded filename as each completes
Interactively, I keep this shell function:
ydl(){
( set -ue
dldir=${DL:-$HOME/dl}/v
[ -d "$dldir" ] || set-x mkdir "$dldir"
cd "$dldir"
command ydl ${1+"$@"}
)
}
which runs the downloader in my preferred download area
without tedious manual cding.
Function main(argv=None, cmd=None)
Main command line.
Class YDL
Manager for a download process.
Method YDL.__init__(self, url, *, fstags, upd=None, tick=None, **kw_opts)
Initialise the manager.
Parameters:
url: the URL to downloadfstags: mandatory keyword argument, acs.fstags.FSTagsinstanceupd: optionalcs.upd.Updinstance for progress reportingtick: optional callback to indicate state changekw_opts: other keyword arguments are used to initialise the options for the underlyingYoutubeDLinstance
Class YDLCommand(cs.cmdutils.BaseCommand)
ydl command line implementation.
Release Log
Release 20200521: Initial PyPI release.
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
File details
Details for the file cs.app.ydl-20200521.tar.gz.
File metadata
- Download URL: cs.app.ydl-20200521.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6834c8e537434337f443aa1567724f24208f7e65683457b454925455834864ca
|
|
| MD5 |
b196aab69551d143fc2040082909c06a
|
|
| BLAKE2b-256 |
cb4b1b8c0b7341f4f8f034305a626edf221fe1e72cc675f8b7d0301de2ec5df3
|