Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

How to find channels with youtube API

$
0
0

As you all know when using youtube api to search for a channel you don't really get the right term. As for example, when searching for 'netfactor' channel it doesn't return me anything because the channel name is 'netFactor'. So how i can implement a method to try to search for all the similarities of a word or to make my method to return all the channels found.

def YoutubeSearch():    API_KEY = os.environ["API_KEY"]    youtube = build('youtube', 'v3', developerKey= 'API_KEY')    request = youtube.channels().list(        part = "snippet",        forUsername = 'netfactor'    )    response = request.execute()    if response['pageInfo']['totalResults'] > 0 :        print(response)

Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>