Get youtube video information and download links by url!
Project description
youtubeless
Get youtube video information and download links by url!
btw i don't know why u need to use this instead of youtube-dl ¯_(ツ)_/¯
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.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for youtubeless-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98a77e5a884025e35091a7f4d07a645153349c351ed25d08d1c3893dbaed73e |
|
MD5 | afa56b794d73f22d958fc88c0e4bb932 |
|
BLAKE2b-256 | b25df1a06bb0c35fb92e53bed73e5535d05aca0bf40d6912cb4ed9b67d20deb5 |