Skip to content

Instantly share code, notes, and snippets.

@ankush1411
ankush1411 / YouTube-OAuth-Snippets
Created August 19, 2021 06:36 — forked from CoreyMSchafer/YouTube-OAuth-Snippets
YouTube-OAuth-Snippets
# token.pickle stores the user's credentials from previously successful logins
if os.path.exists('token.pickle'):
print('Loading Credentials From File...')
with open('token.pickle', 'rb') as token:
credentials = pickle.load(token)
# Google's Request
from google.auth.transport.requests import Request