I wrote a script to upload videos to YouTube using the YouTube v3 data API in python using the example given in the sample code ,
And I wrote another script to add the downloaded video to the playlist using the same YouTube 3 data API that you can see here
After that, I wrote one script to upload the video and add this video to the playlist. In this I took care of authentication and errors, but I get a permission error. here is my new script
#!/usr/bin/python import httplib import httplib2 import os import random import sys import time from apiclient.discovery import build from apiclient.errors import HttpError from apiclient.http import MediaFileUpload from oauth2client.file import Storage from oauth2client.client import flow_from_clientsecrets from oauth2client.tools import run
I can’t understand what’s wrong. I get a permission error. both scripts work fine independently.
can someone help me figure out where I'm wrong, or how to get the video to load and add this playlist.
source share