0

Does anybody know if it's possible to press the play button on a music website using Python? What I'm trying to do is make an alarm clock script that plays a random playlist on a music site.

Here and here are similar questions (I think), although I don't know if what I'm using applies to this. I'm trying to use Grooveshark.

Community
  • 1
  • 1
Dave
  • 503
  • 1
  • 8
  • 21

2 Answers2

0

The first linked question's answer, to use Selenium, is probably your best bet. You can write your code in Python, and any other way of interfacing with a website as complex as Grooveshark will probably not be easy. There is an API (http://developers.grooveshark.com) but for what you want Selenium is probably the easiest approach.

Samizdis
  • 1,591
  • 1
  • 17
  • 33
-1

just use tkinter button widget and use pygame musicplayer, it works very well.

harsh
  • 21
  • 3