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
aiohttpinstalled - search - requires
requestsinstalled
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
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 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
File details
Details for the file youtubeless-1.1.tar.gz.
File metadata
- Download URL: youtubeless-1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-requests/2.24.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4890a9f4ac03f7056d5debc6122ccbd444a61b69482af6f8beab8fa64ab2a0
|
|
| MD5 |
3f321d55d302368ea1e659251937d17d
|
|
| BLAKE2b-256 |
bd26e0039a4c0d1071ff6b11fb52ffcae871486326bf1c6b0849522c11dfa0bb
|
File details
Details for the file youtubeless-1.1-py3-none-any.whl.
File metadata
- Download URL: youtubeless-1.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-requests/2.24.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c98a77e5a884025e35091a7f4d07a645153349c351ed25d08d1c3893dbaed73e
|
|
| MD5 |
afa56b794d73f22d958fc88c0e4bb932
|
|
| BLAKE2b-256 |
b25df1a06bb0c35fb92e53bed73e5535d05aca0bf40d6912cb4ed9b67d20deb5
|