Jump to content

Pandora Get


Astormooke
 Share

Recommended Posts

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. :D 

Also took me about a day to get this running smoothly so feel free to tear it apart. 

Pandoget.zip

Link to comment
Share on other sites

  • 3 years later...

@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 by wysocki
spelling
Link to comment
Share on other sites

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 by anthonyjr2

UHJvZmVzc2lvbmFsIENvbXB1dGVyZXI=

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...