Detail at: https://developers.google.com/youtube/v3/revision_history#may-12,-2021
- Remove channel resource in brandingSettings for channel.
- Remove localizations,targeting resource and some snippet resource for channelSection.
- Remove tags in snippet for playlist.
Methods get_channel_sections_by_channel
, get_channel_section_by_id
has remove parameter hl
.
Modify the auth flow methods.
- add python3.9 tests
- New docs
- Add api methods for members and membership levels
- Add more examples for api
- Add fields for playlist item api
- fix some.
Remove deprecated api.
Provide remain get apis. like activities, captions, channel_sections, i18n, video_abuse_report_reason, search resource and so on.
You can see the README
_ to get more detail for those api.
Provide the page token parameter to skip data have retrieved.
This for follow api methods
api.get_playlists()
api.get_playlist_items()
api.get_videos_by_chart()
api.get_videos_by_myrating()
api.get_comment_threads()
api.get_comments()
api.get_subscription_by_channel()
api.get_subscription_by_me()
example
In[1]: r = api.get_subscription_by_channel(channel_id="UCAuUUnT6oDeKwE6v1NGQxug", limit=5, count=None, page_token="CAUQAA")
In[2]:r.prevPageToken
Out[2]: 'CAUQAQ'
Now you can use authorized access token to get your subscriptions. You can to the demo A demo for get my subscription to see simple usage. Or you can see the subscriptions usage docs.
#43 add api for get my subscriptions
#41 add api for channel subscriptions
Now some apis can get all target items just by one method call.
For example, you can get playlist's all items by follow call
In [1]: r = api.get_playlist_items(playlist_id="PLWz5rJ2EKKc_xXXubDti2eRnIKU0p7wHd", parts=["id", "snippet"], count=None)
In [2]: r.pageInfo
Out[2]: PageInfo(totalResults=73, resultsPerPage=50)
In [3]: len(r.items)
Out[4]: 73
You can see the README to find which methods support this.
Now introduce new model ApiResponse representing the response from youtube, so previous usage has been invalidated.
You need to read the docs README to get the simple new usage.
Split some method into multiple usage, for example get video has been split three methods:
- api.get_video_by_id()
- api.get_videos_by_chart()
- api.get_videos_by_myrating()