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:
idReturns id of the channel or NoneinfoReturns a dict of channel's informationvalidReturns True if channel is valid else FalsenameReturns name of the channel or NoneliveReturns True if the channel is LiveverifiedReturns True if the channel is Verifiedstreaming_nowReturns single url of newest occurring live stream or Nonestreaming_all_nowReturns list of urls of all occurring live streams or Nonepast_streamsReturns list of urls of old live streams or NonelatestReturns the latest Video (obj) of the channel or NoneplaylistsReturns bulk playlist (obj) of channel's public playlistssubscribersReturns sub-count of the channel or Nonetotal_viewsReturns total number of views of the channel or NonejoinedReturns channel creation date or NonecountryReturns the generic country of the channel or Nonecustom_urlReturns the custom url of the channel or Noneavatar_urlReturns the avatar url of the channel or Nonebanner_urlReturns the banner url of the channel or NonedescriptionReturns 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
mp3ormp4asformat[ 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:
titleReturns title of the videoviewsReturns view count of the videolikesReturns total likes on the videodislikesReturns total dislikes on the videoparentReturns channel id from which the video belongdurationReturns duration of the videouploadedReturns date of upload of the videourlReturns url of the videothumbnailReturns hq thumbnail of the videotagsReturns list of tags of the video
-
-
Create an instance of Playlist Data:
-
playlist = Playlist("playlist id") -
Attribute:
infoReturns a dict of info of the playlist containing playlist's name, video count, video ids, thumbnail URL, playlist URL
-
More Independent Attributes:
nameReturns the name of the playlist or NoneurlReturns the url of the playlist or NonevideosReturns the list of video Objects of the videos in playlist or Nonevideo_countReturns the video count of the playlist or NonethumbnailReturns the thumbnail of the playlist or None
-
-
Create an instance of YouTube Extras:
-
extras = Extras() -
Attributes:
TrendingReturns #1 Trending Video ObjectMusicReturns trending Music Video Objects [bulk]GamingReturns trending Gaming Video Objects [bulk]NewsReturns trending News Video Objects [bulk]LiveReturns trending Live Video Objects [bulk]LearningReturns trending Educational Video Objects [bulk]SportsReturns trending Sports Video Objects [bulk]
-
Metadata
Release files for aiotube 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiotube-1.3.2.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiotube-1.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.3 kB
Release files / aiotube-1.3.2.tar.gz
| Download URL | aiotube-1.3.2.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6285e7a9fed8c27fd75446684ca3bb525cad1049693a858580427400896869e
|
|
BLAKE2b-256 checksum How to use checksums |
d5b09c789b70e84f121a8ddd2dfefe8838dd5352ae7697a289608fd46d88498b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / aiotube-1.3.2-py3-none-any.whl
| Download URL | aiotube-1.3.2-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfb467d2eb17d0fceefef59f36f27df1acca7f8eb778b1762ff32465c1c6a4c0
|
|
BLAKE2b-256 checksum How to use checksums |
6a34836f56b0478c570ff59aad9f9a099837ce5df57f7cf7fa3f239c6b61a35f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|