Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
🔖 Bump to v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Jan 22, 2022
1 parent 70403d5 commit a0f3cf8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 *
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 6 additions & 4 deletions youtubesearchpython/__future__/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 *
Expand Down

0 comments on commit a0f3cf8

Please sign in to comment.