Main question:
At the moment, when I want to play music I have to go here: play.google.com/music/listen#/home
And then click the I'm Feeling Lucky icon or another playlist.
I would like to have a link that immediately starts autoplaying the I'm Feeling Lucky playlist or whatever. Does anyone know of such a thing?
Some background info:
I use my desktop as an alarm clock and can get it to run scripts at a certain time. I want to run a simple Python script in the morning that navigates to the URL and starts playing music upon startup like so:
import webbrowser
webbrowser.open("https://play.google.com/music/listen#/autoplay") # or whatever
I know I can do it using a webdriver like so:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get("https://play.google.com/music/listen")
browser.find_element_by_css_selector("iron-icon.paper-fab").click()
But I'll have to set it up to login to my Google account which I don't want to bother with since I use two-step verification and it's also just less clean.