Web Applications Asked by Charles Clayton on February 5, 2021
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.
I had the same problem.
&autoplay=true
to your URL Answered by Raman Tretyak on February 5, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP