This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import subprocess | |
import re | |
argslen = len(sys.argv) | |
vidfile = sys.argv[1] | |
chapfile = sys.argv[2] | |
mdfile = 'mdfile.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydrive.auth import GoogleAuth | |
from pydrive.drive import GoogleDrive | |
# Authentication procedure | |
gauth = GoogleAuth() | |
# Try to load saved client credentials | |
gauth.LoadCredentialsFile("mycreds.txt") | |
if gauth.credentials is None: | |
# Authenticate if they're not there |