YouTubeEased:
A YouTube API based library which will make your coding faster and better.
DISCLAIMER!
This library is vary basic and not very stabled, therefore you might get some errors.
Install:
pip install YouTubeEased
Library Needed:
youtube_dl
How To Call The Library??
from YouTubeEased import YouTubeEased
Great What Now?
Now we need to actually call the function by typing:
from YouTubeEased import YouTubeEased
youtube = YouTubeEased("URL")
If you don't want to use the regular way, you can also call the function from the utils
.
from YouTubeEased.utils import *
Why You should try using the other way?
- Have more control of what you want to use
- You will be able to use any URL even if the URL is not been supported (The normal way is checking the url)!
Examples
from YouTubeEased import YouTubeEased
from YouTubeEased.utils import URLNotSupported
def download(url) -> None:
try:
youtube = YouTubeEased(url)
print("URL Valid")
except URLNotSupported:
print("URL not supported!")
if YouTubeEased(url).is_good_url():
print("URL Valid")
else:
print("URL not supported!")
user = input("Type URL: ")
download(user)
from YouTubeEased import YouTubeEased
user_url = input("Type URL: ")
user_fname = input("Type file name: ")
user_type_download = input("1. Video"
"2. Audio"
"Type Here: ")
youtube = YouTubeEased(user_url)
youtube.rename(user_fname)
if user_type_download == '1':
youtube.download_video()
elif user_type_download == '2':
youtube.download_audio()
else:
print("Wrong input.")
More Information:
This library was made for educational reasons and to make new coders feel more
comfortable around new libraries.