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.2.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

aiotube-1.5.2-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file aiotube-1.5.2.tar.gz.

File metadata

  • Download URL: aiotube-1.5.2.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aiotube-1.5.2.tar.gz
Algorithm Hash digest
SHA256 d1649fefc2cc15b26fe7d9f008984d3d27b304db43db2e1f2ac27710df97eaf8
MD5 98a777862b1a579dd2c715c6ca0fa536
BLAKE2b-256 13896366e87d92ba11f6eadc6f851511446115b3e4062aff4bc805dcf0d1c42c

See more details on using hashes here.

File details

Details for the file aiotube-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: aiotube-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aiotube-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40386de5f65566c7e4e7d23b80f96abe4bcb9b7eee4d9746182a95560b393ecd
MD5 2ab1f6578d18ba6c2a46423fbcaf4275
BLAKE2b-256 050ac277001fd68f735c6b2416aa89c85ca2202150f083382ab3492c78ea43e9

See more details on using hashes here.

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