Python 3 Script to Find Videos, Channels, and Playlists on YouTube Without Using the YouTube Data API V3

All SEO TOOL FREE.COM</br> Search Engine Optimization (SEO)
Jul
20

Python 3 Script to Find Videos, Channels, and Playlists on YouTube Without Using the YouTube Data API V3

07/20/2022 12:00 AM by Admin in Script


Python 3 Script to Find Videos, Channels, and Playlists on YouTube Without Using the YouTube Data API V3

youtube-search-python

Search for YouTube videos, channels, and playlists on this site. Use the link to get video and playlist details. Get a list of possible search terms. V3.0 of the YouTube Data API is not required.

Since June 23, 2022, there have been no active project maintainers. Here are the specifics:

Installing

pip install youtube-search-python

Sync

Search for only videos

1

2

3

4

5

from youtubesearchpython import VideosSearch

 

videosSearch = VideosSearch('NoCopyrightSounds', limit = 2)

 

print(videosSearch.result())

Search for only videos

1

2

3

4

5

from youtubesearchpython.__future__ import VideosSearch

 

videosSearch = VideosSearch('NoCopyrightSounds', limit = 2)

videosResult = await videosSearch.next()

print(videosResult)

 

Search for only channels

1

2

3

4

5

from youtubesearchpython import ChannelsSearch

 

channelsSearch = ChannelsSearch('NoCopyrightSounds', limit = 10, region = 'US')

 

print(channelsSearch.result())

 

 

Search for only playlists

1

2

3

4

5

from youtubesearchpython import PlaylistsSearch

 

playlistsSearch = PlaylistsSearch('NoCopyrightSounds', limit = 1)

 

print(playlistsSearch.result())

 

Search with a filter or sort

1

2

3

4

5

from youtubesearchpython import *

 

customSearch = CustomSearch('NoCopyrightSounds', VideoSortOrder.uploadDate, limit = 1)

 

print(customSearch.result())

 

Search for everything

1

2

3

4

5

from youtubesearchpython import Search

 

allSearch = Search('NoCopyrightSounds', limit = 1)

 

print(allSearch.result())

 

https://github.com/alexmercerind/youtube-search-python


leave a comment
Please post your comments here.

Click to Gets $100 credit

DigitalOcean Referral Badge