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

How encode forHandle parameter using YouTube API?

$
0
0

I am trying to request statistics from Youtube channels that have special chars in the name, like FisicaUniversitáriaUSP.

When I use the code below, there is no results in the response, but the channel exists: https://www.youtube.com/c/FisicaUniversit%C3%A1riaUSP

Code in Python 3:

from googleapiclient.discovery import buildc = 'FisicaUniversitáriaUSP'yt = build('youtube', 'v3', developerKey=api_key)req = yt.channels().list(part='statistics', forHandle=c.encode())resp = req.execute()print(resp)

I appreciate some help!


Viewing all articles
Browse latest Browse all 3831

Trending Articles



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