Python-youtube

Latest version: v0.9.4

Safety actively analyzes 625095 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

0.5.3

What's New

Provide the page token parameter to skip data have retrieved.

This for follow api methods

python
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'

0.5.2

What's New

Now you can use authorized access token to get your subscriptions.
You can to the demo [A demo for get my subscription](https://github.com/sns-sdks/python-youtube/blob/master/examples/subscription.py) to see simple usage.
Or you can see the [subscriptions usage](https://github.com/sns-sdks/python-youtube/blob/master/README.rst#subscriptions) docs.

43 add api for get my subscriptions

41 add api for channel subscriptions

0.5.1

What's New

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](https://github.com/sns-sdks/python-youtube/blob/master/README.rst) to find which methods support this.

0.5.0

**Broken Change**

Now introduce new model ApiResponse representing the response from youtube, so previous usage has been invalidated.

You need to read the docs [README](https://github.com/sns-sdks/python-youtube/blob/master/README.rst) to get the simple new usage.

What's New

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()

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.