Get youtube video information and download links by url!
Project description
youtubeless
Get youtube video information and download links by url!
Usage
import youtubeless
try:
res = youtubeless.search("https://www.youtube.com/watch?v=UOSF9YCfTB8")
except youtubeless.WrongUrlException:
print(f"You give me wrong url :/.")
except youtubeless.VideoNotAvailableException as ex:
print(f"Oh no, this video not available because of {ex}")
else:
print(f"Oh, {res.author}, i like this boy!")
if not res.formats:
print("There is no downloadable formats")
else:
print("There are so many download links... Which one should I choose?")
print(*[f"{f} {f.url}" for f in res.formats], sep='\n') # all types have __str__ method!
It has sync and async search methods:
- search_async - requires
aiohttp
installed - search - requires
requests
installed
They are not installed with library by default!
Installation
To install youtubeless, simply:
$ pip install youtubeless
And don't forget to install aiohttp
$ pip install aiohttp
or requests
$ pip install requsts
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
youtubeless-1.0.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for youtubeless-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffbc0a590f04c20cd1469ef05917252762073566f45cbf92a3a8a0af30e5dba3 |
|
MD5 | 8bd8e51bb4d62a37e1692a1ac2dc6de8 |
|
BLAKE2b-256 | 7c10d24f2dda6ca1b86e8fe13b66d5d860602f0e4e1f789acf68d2837648db9e |