Skip to content

Instantly share code, notes, and snippets.

View VaeterchenFrost's full-sized avatar
😼

Martin Röbke VaeterchenFrost

😼
View GitHub Profile
@VaeterchenFrost
VaeterchenFrost / FirefoxSessionTabs.py
Last active April 16, 2023 18:56
Code snippet to continously monitor the first youtube tab opened in Mozilla Firefox windows.
"""
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