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
""" | |
Code snippet to continuously monitor the first youtube tab opened in Mozilla Firefox windows. | |
Output name and id into file '~/youtubesong.txt' | |
Logs to console. | |
Loads GOOGLEAPI_KEY1 and RECOVERY_JSONLZ4 variables from the environment. | |
GOOGLEAPI_KEY1: Provide access via https://console.cloud.google.com/apis/credentials to YouTube Data API v3 | |
RECOVERY_JSONLZ4: Filesystem path to users 'sessionstore-backups/recovery.jsonlz4' | |
Tested with: | |
python 3.9 | |
certifi==2022.12.7 |