This file contains hidden or 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
#!/usr/bin/python | |
# Note that if you're using Youtube Data API 3 for testing/internal use (and not production purposes), the credentials can only last | |
# for a week, so be sure to update credentials every week by running this python script | |
# You can either: | |
# - Run this script on personal computer to generate credentials.json, and then copy that file to your Raspberry Pi remotely, or | |
# - Run this script on Raspeberry Pi remotely via VNC (Do not use remote SSH as running this script will automatically launch browser for | |
# Google re-authentication) to generate credentials.json | |
import json |