Skip to content

Instantly share code, notes, and snippets.

View kenny5524's full-sized avatar
๐Ÿ˜

KENNEDY YEBOAH BRUCE kenny5524

๐Ÿ˜
View GitHub Profile
@kenny5524
kenny5524 / YouTube-OAuth-Snippets
Created October 25, 2021 04:01 — 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