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

Youtube Data API 403 forbidden after numerous successful thumbnails.set() calls

$
0
0
def update_thumbnail_on_youtube(video, path):    try:                    request = youtube.thumbnails().set(videoId=video['id'], alt="media", media_body=MediaFileUpload(path))        response = request.execute()        print(response)    except Exception as e:        raise(e)    finally:        os.remove(path)

this works fine. i'll give a list of videos from my own youtube playlist, auth, and path is a local image file. after a hundred if these updates it'll throw 403

typically wait a day and it fixes? maybe? doesnt say what the deal is in the documentation.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



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