


# This variable defines a message to display if the CLIENT_SECRETS_FILE is # authenticated user's account and requires requests to use an SSL connection. # This OAuth 2.0 access scope allows for full read/write access to the # For more information about the client_secrets.json file format, see:ĬLIENT_SECRETS_FILE = "client_secrets.json" # For more information about using OAuth2 to access the YouTube Data API, see: # Please ensure that you have enabled the YouTube Data API for your project. You can acquire an OAuth 2.0 client ID and client secret from # the OAuth 2.0 information for this application, including its client_id and # The CLIENT_SECRETS_FILE variable specifies the name of a file that contains # python captions.py -videoid='' -name='' -file='' -language='' -action='action'įrom apiclient.discovery import build_from_documentįrom oauth2client.client import flow_from_clientsecretsįrom oauth2client.tools import argparser, run_flow

I customized the example code produced by YouTube. Hello I tried to download captions from a YouTube video with YouTube data API.
