Skip to main content

Get 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 [optional])

        Returns bulk video Object of latest uploaded videos if channel is not live at that moment

    • 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
      • live Returns True if the channel is Live
      • verified Returns True if the channel is Verified
      • livestream Returns single url of newest occurring live stream or None
      • livestreams Returns list of urls of all occurring live streams or None
      • oldstreams Returns list of urls of old live streams or None
      • latest Returns the latest Video (obj) of the channel 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
      • joined 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 [optional])

        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 [optional])

        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 [optional])

        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
      • uploaded 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
  • Create an instance of Playlist Data:

    • playlist = Playlist("playlist id")

    • Attribute:

      • info

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

    • More Independent Attributes:

      • name Returns the name of the playlist or None
      • url Returns the url of the playlist or None
      • videos Returns the list of video Objects of the videos in playlist or None
      • video_count Returns the video count of the playlist or None
      • thumbnail Returns the thumbnail of the playlist or None
  • 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]

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

Uploaded Source

Built Distribution

aiotube-1.4.3-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiotube-1.4.3.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for aiotube-1.4.3.tar.gz
Algorithm Hash digest
SHA256 7120dbcb6523c90e712ad9f2b7bc042f3e2456ca5928a404cd3e48ffb939897b
MD5 f75f701f8cd7f7faf9b6ef4aab93a184
BLAKE2b-256 f967647b3d32927f218663adc5930ebb35a04b4979980d4718b7ee7a82f6c489

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiotube-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for aiotube-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e7a238e9d49d4498ddd9e3223605842eb01576d3d993e7b988ac118288548ea2
MD5 f1047e147483b655d726c33625aefce2
BLAKE2b-256 ba78b575a3dc0e7e633863fd73638d13810a964c6d1777351e74e62eb9115bac

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