A basic library which will give you a better and easier experience with youtube API
Project description
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??
# This way you call the __init__ function of the library!
from YouTubeEased import YouTubeEased
Great What Now?
Now we need to actually call the function by typing:
from YouTubeEased import YouTubeEased
# Here you type the URL!
youtube = YouTubeEased("URL")
If you don't want to use the regular way, you can also call the functions that are saved in the Function folder.
I don't recommend doing it because the library not stable yet.
# All the functions can be taken by this way too!
from YouTubeEased.Functions.Downloader import DownloadURL
from YouTubeEased.Functions.GetInfo import GetInfoVideo
from YouTubeEased.Functions.URLChecker import YoutubeURLChecker, URLNotSupported
Examples
from YouTubeEased import YouTubeEased
from YouTubeEased.Functions.URLChecker import YoutubeURLChecker
from YouTubeEased.Functions.URLChecker import URLNotSupported
def download(url) -> None:
# except URL errors
try:
youtube = YouTubeEased(url)
print("URL Valid")
except URLNotSupported:
print("URL not supported!")
#-----------------------------------#
# OR: #
#-----------------------------------#
if YoutubeURLChecker(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.file_name(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.
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
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 YouTubeEased-1.0.2.tar.gz.
File metadata
- Download URL: YouTubeEased-1.0.2.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
077d5432284ff1934555d788c47c617fabac853a32fc0c0ea6b76183b5db18a0
|
|
| MD5 |
6acf3dae4bd6786a769b29acda3dc8ed
|
|
| BLAKE2b-256 |
69886c304977dd4e2f6a76888b6ccf47b097026793b59105713fed4803e08768
|
File details
Details for the file YouTubeEased-1.0.2-py3-none-any.whl.
File metadata
- Download URL: YouTubeEased-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689dc920284a015e49730c353bda170f4a26711258361be50b926a94e9d9df23
|
|
| MD5 |
476b1ab4f86d1312c35bc01edcda6007
|
|
| BLAKE2b-256 |
03c3bfbbeb8d6ef43120cba5ebd5cd3ccf9039d964a92deaf896684577095c16
|