Astormooke Posted October 4, 2013 Share Posted October 4, 2013 This is a very messy but kinda cool and it only works while Pandora is set up the way it is... Functions as such: -Opens Pandora -Waits for song to play -Gets artist and song info -Finds it on youtube -Then downloads from youtube-mp3 website My goal is to streamline this however I am not good at parsing HTML5 hence the cave man coding. If anyone finds the time to help it would be appreciated just thought I'd show y'all this. Also took me about a day to get this running smoothly so feel free to tear it apart. Pandoget.zip wysocki 1 Link to comment Share on other sites More sharing options...
wysocki Posted January 8, 2017 Share Posted January 8, 2017 (edited) @Astormooke: This is just about EXACTLY what I've been looking for! Unfortunately, it doesn't work anymore. Guess Pandora changed their interface! It does start Pandora playing a song. But it does not retrieve the song title/artist from the page source. I examined the page with Firebug and the title/artist somehow does not appear in the main source of the page but IS obviously there as I can examine it. I believe they're burying it in a frame somehow but I would love to be able to scrape the title/artist info from the page. I don't even need the Youtube part of the code, I just want to get the data and write it to a file (I plan on using it in another app to display it on my home info system monitors). Could you (or anyone else) take another look at this and hopefully get it to work again (or give me some pointers on how to do this)? THANX! Edited January 8, 2017 by wysocki spelling Link to comment Share on other sites More sharing options...
anthonyjr2 Posted January 10, 2017 Share Posted January 10, 2017 (edited) On 1/7/2017 at 7:48 PM, wysocki said: @Astormooke: This is just about EXACTLY what I've been looking for! Unfortunately, it doesn't work anymore. Guess Pandora changed their interface! It does start Pandora playing a song. But it does not retrieve the song title/artist from the page source. I examined the page with Firebug and the title/artist somehow does not appear in the main source of the page but IS obviously there as I can examine it. I believe they're burying it in a frame somehow but I would love to be able to scrape the title/artist info from the page. I don't even need the Youtube part of the code, I just want to get the data and write it to a file (I plan on using it in another app to display it on my home info system monitors). Could you (or anyone else) take another look at this and hopefully get it to work again (or give me some pointers on how to do this)? THANX! This is a verrrry old thread, you probably could have gotten away with creating your own and then linking to this one, and gotten better replies with a better title. EDIT: That said, it seems that the song information is within the "trackData" div on the now playing page. If you do a CTRL+F for that div you should be able to find the location. My guess is the song is pulled through Javascript, but there are probably other ways to pull the song information off of the page. If you go to inspect element you can do a search for the song you're listening to to find it's location. EDIT 2: You should be able to pull the live page source every 15 seconds or so and just use some sort of Regex to pull the song name/artist off of the page. Edited January 10, 2017 by anthonyjr2 atwolf359 1 UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI= Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now