Jump to content

Recommended Posts

Hi,

i want to grab some music from Pandora - and - the right title and the cover :ermm:

So, here is an example.

When i grab the music i'll get mp3 files with date and time. When fineshed - the next record goes on and then i want to

rename the last mp3 file (or maybe "tag" it?).

Did anyone have a solution for this?

Greets

Dizzy

post-83-0-39095700-1362690298_thumb.jpg

Link to comment
Share on other sites

  • Moderators

Dizzy, did you notice the piece at the top that states "This is not a general support forum!"? If you're having issues, you need to ask this in the General Help and Support forum

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Hi JLogan3o13,

sorry, if i was in the wrong section. I thought i was in the right one. :

OK - as i can see, my question is in "General Help and Support".

Can anyone give me a hand to solve my problem?

I can't grab the title, artist and cover from the site :ranting:

Greets Dizzy

Link to comment
Share on other sites

Can you give me in a txt the source of the page that contain the data that you want? This website isn't reachable for userlocated outside of the U.S., Australia and New Zealand.

Hi!

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Link to comment
Share on other sites

  • Moderators

Dizzy,

as i can see, my question is in "General Help and Support"

That is because I moved it there - originally you had posted it in "Examples" just as JLogan3o13 said. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

That is because I moved it there - originally you had posted it in "Examples" just as JLogan3o13 said.

I know that there are some mystic operations in the background o:) .

Thanks Melba23

Edited by Dizzy
Link to comment
Share on other sites

I know that there are some mystic operations in the background o:) .

Thanks Melba23

Read my previous message ;)

Hi!

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Link to comment
Share on other sites

And Nessie,

just for you (and all the others): You can get the page.

If you use Firefox, then look for

ProxMate - unblock the Internet!

Install it - restart your Firefox and try the url: www.pandora.com

Let me know what happens :shifty:

Greets

Dizzy

Link to comment
Share on other sites

Yes i know about proxy and other stuff to unlock that ;). I have seen what the have done, they are using jquery to show/hyde html that's why you dont see the required info in the html. I'll have a look and let you know ;)

Hi!

Edited by Nessie

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Link to comment
Share on other sites

Sorry i forgot about you :P

I dont have find yet a good proxy to use in my autoit script, but i have understand how to grab all the info that you need ;)

Pandora give to you this html code:

<div style="display: block;" class="contents">
   <div class="slideDragContainer">
      <div class="slideDrag"></div>
      <div class="slideDragHandle ui-draggable"></div>
   </div>
   <div class="info">
      <div class="buttons">
         <div class="shareButton"></div>
         <div class="buyButton"></div>
      </div>
      <img style="display: none;" class="thumb" id="thumbup" src="/img/content-area/thumbup-watermark.png">
      <img style="display: none;" class="thumb" id="thumbdown" src="/img/content-area/thumbdown-watermark.png">
      <div class="trackData">
         <div><a address="true" href="http://www.pandora.com/pink/funhouse-explicit/sober" class="songTitle">Sober</a></div>
         <div><i class="byText">by</i> <a address="true" href="http://www.pandora.com/pink" class="artistSummary">Pink</a></div>
         <div><i>on</i> <a address="true" href="http://www.pandora.com/pink/funhouse-explicit" class="albumTitle">Funhouse (Explicit)</a></div>
      </div>
   </div>
   <div style="display: none;" class="audioAdInfo">
      <div class="adText">Your music will be right back…</div>
      <div class="whyAdsButton"></div>
   </div>
</div>

This is the script that can grab this info:

#include <Array.au3>

$String = '<div style="display: block;" class="contents">' & _
        '<div class="slideDragContainer">' & _
        ' <div class = "slideDrag"></div>' & _
        ' <div class = "slideDragHandle ui-draggable"></div>' & _
        '</div>' & _
        ' <div class = "info">' & _
        ' <div class = "buttons">' & _
        ' <div class = "shareButton"></div>' & _
        ' <div class = "buyButton"></div>' & _
        '</div>' & _
        ' <img style = "display: none;" class = "thumb" id = "thumbup" src = "/img/content-area/thumbup-watermark.png">' & _
        ' <img style = "display: none;" class = "thumb" id = "thumbdown" src = "/img/content-area/thumbdown-watermark.png">' & _
        '<div class = "trackData">' & _
        ' <div> <a address = "true" href = "http://www.pandora.com/pink/funhouse-explicit/sober" class = "songTitle">Sober</a> </div>' & _
        ' <div> <i class = "byText">by</i> <a address = "true" href = "http://www.pandora.com/pink" class = "artistSummary">Pink</a> </div>' & _
        ' <div> <i> on</i> <a address = "true" href = "http://www.pandora.com/pink/funhouse-explicit" class = "albumTitle">Funhouse(Explicit)</a> </div>' & _
        '</div>' & _
        '</div>' & _
        ' <div style = "display: none;" class = "audioAdInfo">' & _
        ' <div class = "adText">Your music will be right back…</div>' & _
        ' <div class = "whyAdsButton"></div>' & _
        '</div>' & _
        '</div> '

$sArtist = StringRegExp($String, 'artistSummary">(.*?)</a>', 3)
_ArrayDisplay($sArtist)
$sSong = StringRegExp($String, 'songTitle">(.*?)</a>', 3)
_ArrayDisplay($sSong)
$sAlbum = StringRegExp($String, 'albumTitle">(.*?)</a>', 3)
_ArrayDisplay($sAlbum)

As i don't have a proxy on ie i can use the function InetRead, InetGet, etc... You have just to simple to grab the source from a pandora link like (http://www.pandora.com/station/play/1374125137553095054) save you source in a variable or file and the use the RegExp provided in the previous script ;)

Hi and goodluck!

Edited by Nessie

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

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