Skip to main content

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 function from the utils.

# All the functions can be taken by this way too!
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:
    # except URL errors
    try:
        youtube = YouTubeEased(url)
        print("URL Valid")
    except URLNotSupported:
        print("URL not supported!")
    # -----------------------------------#
    #                OR:                #
    # -----------------------------------#
    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.

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

YouTubeEased-1.0.4.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

YouTubeEased-1.0.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file YouTubeEased-1.0.4.tar.gz.

File metadata

  • Download URL: YouTubeEased-1.0.4.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

Hashes for YouTubeEased-1.0.4.tar.gz
Algorithm Hash digest
SHA256 058f60d46c04dc984ad18eb91357051629f59d894ee16f3eb8c82c4775419d9f
MD5 26b27d0c72768e687dc9f947ac75e45f
BLAKE2b-256 fc229bf0cbea803a1c0a9760a4ea3a342ab6af8cfe9a861c26731dc90715ca34

See more details on using hashes here.

File details

Details for the file YouTubeEased-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: YouTubeEased-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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

Hashes for YouTubeEased-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 42d77f0d2b5588663359cc68a1fe87974bda6c3ad90b443ad452bb4b105a5378
MD5 14387ea1a969d2049ffa6263000275c9
BLAKE2b-256 f87ac8b3e82d5685bc879c7bfe2759191af6b59324cb4c66997a79f4e1d623b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page