youtube downloader python package
Project description
utpy
simple python library for download youtube video or playlist.
utpy = U (you) - T (Tube) - PY (python)
Installation
Use the package manager pip to install utpy.
pip install utpy
Usage
import utpy
# Default Settings. The default is like this if you dont define settings.
default_settings = {
'save_to' : None, # Path to save downloaded video(s) if you want. Read Note (1)
'file_name' : None, # you can select video files name
'quality' : None, # Select video quality: 360p or 720p (default: 720p)
'dl_range' : (), # Define a range to videos in that range in playlist. example: (2, 8)
'dl_list' : [], # Select some videos form playlist to download them. example: [5, 7, 8, 12]
'retries' : 2, # Retries to download video if content not received.
}
# video or playlist url
url = 'https://www.youtube.com/watch?v=bIGBYOcxMqM'
# Load utpy!
yt = utpy.Load(url, settings = default_settings)
# return all information as dictionary
yt.data
# download video or videos of playlist
yt.download
Note (1): Correct save_to formts:
{'save_to' : 'D:/path/to/directory'}
or
{'save_to' : r'D:\path\to\directory'}
or
{'save_to' : 'D:\\\path\\\to\\\directory'}
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
utpy-2.4.0.tar.gz
(7.4 kB
view details)
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
utpy-2.4.0-py3-none-any.whl
(7.5 kB
view details)
File details
Details for the file utpy-2.4.0.tar.gz.
File metadata
- Download URL: utpy-2.4.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60fe9f91ae606f0851f69341e0c84c5e1960378552ae646d4f6ede2054f1a155
|
|
| MD5 |
98b54626c02398c1bc8baa0702846c43
|
|
| BLAKE2b-256 |
710045c7d4b4c28c7882c06bc452668de095bc14ade04826f0722427018a400f
|
File details
Details for the file utpy-2.4.0-py3-none-any.whl.
File metadata
- Download URL: utpy-2.4.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e82b7e27375eca929ebe732f5417da2ece38589a0476d04810dba8a776950c91
|
|
| MD5 |
ad4bb4a0e20a7561b975477442464641
|
|
| BLAKE2b-256 |
f5a7ae5a2c8eef81034f2f2c72a10d2799e88819e90fb29e00003f81ba0ff0c8
|