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 Noneinfo
Returns a dict of channel's informationvalid
Returns True if channel is valid else Falsename
Returns name of the channel or Nonelinks
Returns social links added to the channel or Nonelive
Returns True if the channel is Liveverified
Returns True if the channel is Verifiedlivestream
Returns live video (obj) of newest occurring live stream or Nonelivestreams
Returns bulk video (obj) of all occurring live streams or Noneold_streams
Returns list of urls of old live streams or Nonerecent_upload
Returns video (obj) of most recently uploaded video or Nonerecent_streamed
Returns video (obj) of the recently streamed video or Nonelatest
Returns the latest video (obj) of the channel or Nonevideo_count
Returns the video count of the channel currently having or Noneplaylists
Returns bulk playlist (obj) of channel's public playlistssubscribers
Returns sub-count of the channel or Noneviews
Returns total number of views of the channel or Nonecreated_at
Returns channel creation date or Nonecountry
Returns the generic country of the channel or Nonecustom_url
Returns the custom url of the channel or Noneavatar
Returns the avatar url of the channel or Nonebanner
Returns the banner url of the channel or Nonedescription
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 videoviews
Returns view count of the videolikes
Returns total likes on the videodislikes
Returns total dislikes on the videoauthor
Returns channel id from which the video belongduration
Returns duration of the video in secondsupload_date
Returns date of upload of the videourl
Returns url of the videothumbnail
Returns hq thumbnail of the videotags
Returns list of tags of the videois_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 playlisturl
Returns the url of the playlistvideos
Returns video bulk object of the videos in playlistvideo_count
Returns the video count of the playlistthumbnail
Returns the thumbnail of the playlist
-
-
Create an instance of YouTube Extras:
-
extras = Extras()
-
Attributes:
trending
Returns #1 Trending Video Objectmusic
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1649fefc2cc15b26fe7d9f008984d3d27b304db43db2e1f2ac27710df97eaf8 |
|
MD5 | 98a777862b1a579dd2c715c6ca0fa536 |
|
BLAKE2b-256 | 13896366e87d92ba11f6eadc6f851511446115b3e4062aff4bc805dcf0d1c42c |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40386de5f65566c7e4e7d23b80f96abe4bcb9b7eee4d9746182a95560b393ecd |
|
MD5 | 2ab1f6578d18ba6c2a46423fbcaf4275 |
|
BLAKE2b-256 | 050ac277001fd68f735c6b2416aa89c85ca2202150f083382ab3492c78ea43e9 |