Skip to main content

Access YouTube Public Data without YouTubeAPI

Project description

AioTube

All in One Tube is a package created to power the user with YouTube Data API v3 functionality without API Key.

Only valid for public information.

How to use?

  • Installation:

    • pip install aiotube
  • Importing AioTube:

    • from aiotube import Search, Video, Channel, Playlist, Extras
  • Create an instance of YouTube Channel:

    • channel = Channel(Channel ID / URL / Custom URL)

    • Method:

      • uploads(limit: int)

        Returns bulk video Object of latest uploaded videos (first 30 videos).

    • Attributes:

      • id Returns id of the channel or None
      • info Returns a dict of channel's information
      • valid Returns True if channel is valid else False
      • name Returns name of the channel or None
      • links Returns social links added to the channel or None
      • live Returns True if the channel is Live
      • verified Returns True if the channel is Verified
      • livestream Returns live video (obj) of newest occurring live stream or None
      • livestreams Returns bulk video (obj) of all occurring live streams or None
      • old_streams Returns list of urls of old live streams or None
      • recent_upload Returns video (obj) of most recently uploaded video or None
      • recent_streamed Returns video (obj) of the recently streamed video or None
      • latest Returns the latest video (obj) of the channel or None
      • video_count Returns the video count of the channel currently having or None
      • playlists Returns bulk playlist (obj) of channel's public playlists
      • subscribers Returns sub-count of the channel or None
      • views Returns total number of views of the channel or None
      • created_at Returns channel creation date or None
      • country Returns the generic country of the channel or None
      • custom_url Returns the custom url of the channel or None
      • avatar Returns the avatar url of the channel or None
      • banner Returns the banner url of the channel or None
      • description Returns channel's short description or None
  • Get YouTube Search Results:

    • Get Videos by YouTube Search:

      • Result = Search.video(keywords: str)

        Returns a Video Object according to queries.

      • Results = Search.videos(keywords: str, limit: int)

        Returns a list of Bulk Video Objects according to queries.

    • Get Channels by YouTube Search:

      • Result = Search.channel(keywords: str)

        Returns a Channel Object according to queries.

      • Results = Search.channels(keywords: str, limit:int)

        Returns a list of Bulk Channel Objects according to queries.

    • Get Playlists by YouTube Search:

      • Result = Search.playlist(keywords: str)

        Returns a Playlist Object according to queries.

      • Results = Search.playlists(keywords: str, limit:int)

        Returns a list of Bulk Playlist Objects according to queries.

  • Create an instance of Video Data:

    • vid = Video("video Id / video url")

    • Attribute:

      • info

      Returns a Dict of video information title, views, likes, dislikes, author, duration, upload_date, thumbnail, tags etc.

    • More Independent Attributes:

      • title Returns title of the video
      • views Returns view count of the video
      • likes Returns total likes on the video
      • dislikes Returns total dislikes on the video
      • author Returns channel id from which the video belong
      • duration Returns duration of the video in seconds
      • upload_date Returns date of upload of the video
      • url Returns url of the video
      • thumbnail Returns hq thumbnail of the video
      • tags Returns list of tags of the video
      • is_streamed Returns True if the video was streamed
  • Create an instance of Playlist Data:

    • playlist = Playlist(Playlist ID / Playlist URL)

    • Attribute:

      • info

        Returns a dict of info of the playlist containing name, video count, video ids, thumbnail URL, playlist URL

    • More Independent Attributes:

      • name Returns the name of the playlist
      • url Returns the url of the playlist
      • videos Returns video bulk object of the videos in playlist
      • video_count Returns the video count of the playlist
      • thumbnail Returns the thumbnail of the playlist
  • Create an instance of YouTube Extras:

    • extras = Extras()

    • Attributes:

      • trending Returns #1 Trending Video Object
      • music Returns trending Music Video Objects [bulk]
      • gaming Returns trending Gaming Video Objects [bulk]
      • news Returns trending News Video Objects [bulk]
      • livestream Returns trending Live Video Objects [bulk]
      • learning Returns trending Educational Video Objects [bulk]
      • sports Returns trending Sports Video Objects [bulk]
  • Note on Bulk Objects:

    • Any Bulk Objects is not iterable.
    • It almost has the same functionality as Primary Object (not always).
    • It holds the same attributes as Primary Objects but in plural form.
    • Upon applying a valid attribute, it will return all data in list form.

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

aiotube-1.5.0.tar.gz (12.8 kB view hashes)

Uploaded Source

Built Distribution

aiotube-1.5.0-py3-none-any.whl (14.7 kB view hashes)

Uploaded Python 3

Supported by

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