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 functionality without API Key
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 Noneinfo
Returns a dict of channel's informationvalid
Returns True if channel is valid else Falsename
Returns name of the channel or Nonelive
Returns True if the channel is Liveverified
Returns True if the channel is Verifiedstreaming_now
Returns single url of newest occurring live stream or Nonestreaming_all_now
Returns list of urls of all occurring live streams or Nonepast_streams
Returns list of urls of old live streams or Nonelatest
Returns the latest Video (obj) of the channel or Noneplaylists
Returns bulk playlist (obj) of channel's public playlistssubscribers
Returns sub-count of the channel or Nonetotal_views
Returns total number of views of the channel or Nonejoined
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_url
Returns the avatar url of the channel or Nonebanner_url
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 [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")
-
Method:
download(format: str, filename: str[optional])
use
mp3
ormp4
asformat
[ downloads available best quality ]
-
Attribute:
info
Returns a Dict of video information { title, views, likes, dislikes, parent, 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 videoparent
Returns channel id from which the video belongduration
Returns duration of the videouploaded
Returns date of upload of the videourl
Returns url of the videothumbnail
Returns hq thumbnail of the videotags
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 Noneurl
Returns the url of the playlist or Nonevideos
Returns the list of video Objects of the videos in playlist or Nonevideo_count
Returns the video count of the playlist or Nonethumbnail
Returns the thumbnail of the playlist or None
-
-
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]Live
Returns trending Live Video Objects [bulk]Learning
Returns trending Educational Video Objects [bulk]Sports
Returns trending Sports Video Objects [bulk]
-
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.3.0.tar.gz
.
File metadata
- Download URL: aiotube-1.3.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e189f0dcda0ac928d32320f9c76b5cd61cfb3444e17a8079d98b38bd9279205 |
|
MD5 | 4b1916af5dfa889ff3c7d5b311f602be |
|
BLAKE2b-256 | 82ba7c139e2f696cf30c96a8a3ebe47ddec0cd4e6bbb41a907184000628806ac |
File details
Details for the file aiotube-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: aiotube-1.3.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d1d1f7b4cededfb84f3adba783d08e73c5439d5faf4ae8e73ca1e538426faa |
|
MD5 | 60a9e2f3373f109b32bcd12c376523a9 |
|
BLAKE2b-256 | 213397cc0f6ed970ffbde06c6dd646929a652d213b7593093783cb755944bdab |