From a0f3cf8a6f7c6ddae4d422e286d6c859572eae05 Mon Sep 17 00:00:00 2001 From: mytja Date: Sat, 22 Jan 2022 19:59:07 +0100 Subject: [PATCH] :bookmark: Bump to v1.6.1 --- README.md | 8 +++++--- setup.py | 2 +- youtubesearchpython/__future__/README.md | 10 ++++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0c3ba20..8b34da1 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ ##### Search for YouTube videos, channels & playlists. Get video & playlist information using link. Get search suggestions. +##### Important: As of v1.6.1, we no longer use PyTube (see https://github.com/alexmercerind/youtube-search-python/pull/155). You have to install yt-dlp in order to use StreamURLFetcher: `pip install yt-dlp` + #### WITHOUT YouTube Data API v3. [![PyPI - Version](https://img.shields.io/pypi/v/youtube-search-python?style=for-the-badge)](https://pypi.org/project/youtube-search-python) @@ -1355,10 +1357,10 @@ print(search.result(mode = ResultMode.json)) #### Getting direct stream URL of a video -This class is able fetch video URLs without any additional web requests (that's fast), as one might already have same response at the time of showing it to the user. +This class is able to fetch video URLs without any additional web requests (that's fast), as one might already have same response at the time of showing it to the user. -For making use of this functionality, you must install [PyTube](https://github.com/pytube/pytube) as a dependency. -StreamURLFetcher makes slight improvements & changes to YouTube class from [PyTube](https://github.com/pytube/pytube). +For making use of this functionality, you must install [yt-dlp](https://github.com/yt-dlp/yt-dlp) as a dependency. +StreamURLFetcher makes slight improvements & changes to YouTube class from [yt-dlp](https://github.com/yt-dlp/yt-dlp). ```py from youtubesearchpython import * diff --git a/setup.py b/setup.py index 3a8ce1c..7d41e5a 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="youtube-search-python", - version="1.6.0", + version="1.6.1", author="Hitesh Kumar Saini", license='MIT', author_email="saini123hitesh@gmail.com", diff --git a/youtubesearchpython/__future__/README.md b/youtubesearchpython/__future__/README.md index 05c4307..fa289ac 100644 --- a/youtubesearchpython/__future__/README.md +++ b/youtubesearchpython/__future__/README.md @@ -2,9 +2,11 @@ #### Search for YouTube videos, channels & playlists & get video information using link WITHOUT YouTube Data API v3. +##### Important: As of v1.6.1, we no longer use PyTube (see https://github.com/alexmercerind/youtube-search-python/pull/155). You have to install yt-dlp in order to use StreamURLFetcher: `pip install yt-dlp` + Works without YouTube Data API v3 and has zero dependencies. -Working as of 2021. +Working as of 2022. ## Support @@ -922,7 +924,7 @@ Found all the videos. #### More to the playlists -You can directly instanciate the `Playlist` class as follows to access its information & videos in the `info` and `videos` fields respectively. +You can directly instantiate the `Playlist` class as follows to access its information & videos in the `info` and `videos` fields respectively. YouTube offers only 100 videos in a single request, for getting more videos present in the playlist, you can check `hasMoreVideos` bool to see if playlist contains more videos. If playlist has more videos, then you can call `getNextVideos` to fetch more videos. @@ -1073,8 +1075,8 @@ print(result) This class is able fetch video URLs without any additional web requests (that's fast), as one might already have same response at the time of showing it to the user. -For making use of this functionality, you must install [PyTube](https://github.com/pytube/pytube) as a dependency. -StreamURLFetcher makes slight improvements & changes to YouTube class from [PyTube](https://github.com/pytube/pytube). +For making use of this functionality, you must install [yt-dlp](https://github.com/yt-dlp/yt-dlp) as a dependency. +StreamURLFetcher makes slight improvements & changes to YouTube class from [yt-dlp](https://github.com/yt-dlp/yt-dlp). ```py from youtubesearchpython.__future__ import *