SlyYTDAPI.ytdapi#
Functions
|
|
|
Classes
|
|
|
|
|
An enumeration. |
|
An enumeration. |
|
An enumeration. |
|
|
|
An enumeration. |
|
An enumeration. |
|
|
|
|
|
- class SlyYTDAPI.ytdapi.Scope[source]#
Bases:
object
- READONLY = 'https://www.googleapis.com/auth/youtube.readonly'#
- MEMBERS = 'https://www.googleapis.com/auth/youtube.channel-memberships.creator'#
- class SlyYTDAPI.ytdapi.Part(value)[source]#
Bases:
Enum
An enumeration.
- ID = 'id'#
- DETAILS = 'contentDetails'#
- SNIPPET = 'snippet'#
- STATUS = 'status'#
- STATISTICS = 'statistics'#
- REPLIES = 'replies'#
- class SlyYTDAPI.ytdapi.PrivacyStatus(value)[source]#
Bases:
Enum
An enumeration.
- PRIVATE = 'private'#
- UNLISTED = 'unlisted'#
- PUBLIC = 'public'#
- class SlyYTDAPI.ytdapi.SafeSearch(value)[source]#
Bases:
Enum
An enumeration.
- SAFE = 'strict'#
- MODERATE = 'moderate'#
- UNSAFE = 'none'#
- class SlyYTDAPI.ytdapi.Order(value)[source]#
Bases:
Enum
An enumeration.
- DATE = 'date'#
- LIKES = 'rating'#
- RELEVANCE = 'relevance'#
- ALPHABETICAL = 'title'#
- VIEWS = 'viewCount'#
- class SlyYTDAPI.ytdapi.CommentOrder(value)[source]#
Bases:
Enum
An enumeration.
- RELEVANCE = 'relevance'#
- TIME = 'time'#
- class SlyYTDAPI.ytdapi.Video(source, yt)[source]#
Bases:
object
- Parameters:
yt (YouTubeData) –
- privacy: PrivacyStatus#
- class SlyYTDAPI.ytdapi.Playlist(id, yt)[source]#
Bases:
object
- Parameters:
id (str) –
yt (YouTubeData) –
- class SlyYTDAPI.ytdapi.Channel(source, yt)[source]#
Bases:
object
- Parameters:
yt (YouTubeData) –
- property custom_url#
- property name#
- class SlyYTDAPI.ytdapi.YouTubeData(app_or_api_key)[source]#
Bases:
WebAPI
- Parameters:
app_or_api_key (str | OAuth2 | UrlApiKey) –
- await video(id, parts={<Part.ID: 'id'>, <Part.SNIPPET: 'snippet'>})[source]#
- Parameters:
id (str) –
parts (Part | set[SlyYTDAPI.ytdapi.Part]) –
- Return type:
- search_videos(query=None, channel_id=None, after=None, before=None, mine=None, order=Order.RELEVANCE, safeSearch=SafeSearch.MODERATE, parts=Part.SNIPPET, limit=50)[source]#
- comments(video_id, query=None, parts={<Part.SNIPPET: 'snippet'>, <Part.REPLIES: 'replies'>}, order=CommentOrder.TIME, limit=None)[source]#
- Parameters:
video_id (str) –
query (str | None) –
parts (Part | set[SlyYTDAPI.ytdapi.Part]) –
order (CommentOrder) –
limit (int | None) –
- Return type:
AsyncTrans[Comment]