New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

YouTubeEased

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

YouTubeEased

A basic library which will give you a better and easier experience with youtube API

  • 1.0.4
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc