Member
Join Date: Jul 2004
|
on my website, i want users to be able to tell me the name of an artist, song or album and then get a link to the iTunes Music Store generated. apple does just this on the linked page below:
http://phobos.apple.com/WebObjects/M.../itmsLinkMaker this is exactly what i want but i can't copy it since it uses their database etc. i'm using PHP for my website. thankful for any help! |
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
Good luck!
Without generating your own duplicate database or doing some funky script trickery that actually accesses Apple's own page and returns the results, I don't think this will be possible. The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting. |
quote |
Member
Join Date: Jul 2004
|
Quote:
any ideas on how to do this? anyone? |
|
quote |
Senior Member
Join Date: Dec 2004
Location: Texas
|
I know how to do this in a Java Servlet no sweat. Is there an HTTPConnection object in PHP? I could probably write a servlet that would do it. It'd actually be pretty cool (and good practice).
--EDIT-- My bad - what I was thinking would work would only take you to the second part of the link maker, not to the actual iTMS links themselves. Never mind. I don't actually think you can do it - you would have to know the IDs of all the artists, songs, albums etc... On second thought, you could, but you would have to run a looping HTTP query to retrieve the information and parse it and copy it into your own database, and I am pretty sure that is 1) illegal (perhaps could be argued as hacking) and 2) not nice to Apple because you would be HAMMERING that application. Cheers, Wraven Last edited by Wraven : 2005-01-14 at 00:19. |
quote |
Member
Join Date: Jul 2004
|
what about putting the apple page into a frame or iframe on my own site. would it be possible to have PHP read the code from within that frame, since all the information IS displayed there (i can manually copy and paste it if i were so inclined)?
possible? |
quote |
Senior Member
Join Date: Dec 2004
Location: Texas
|
I don't understand how this would get you the link to the iTMS song, album, or artist though?
OOOOhhhh - iframe - yes you COULD use that - but wouldn't it look like crap with scrollbars, etc... in order to make it fit? Cheers, Wraven |
quote |
Member
Join Date: Jul 2004
|
or what about reading what is in the returned URL, if you check it out you'll see you can read some of the info from the URL on each subsequent page in the link-maker process. would that help?
|
quote |
Member
Join Date: Jul 2004
|
Quote:
i really want this to work... also, check the "read the URL info" in my post above! thanks |
|
quote |
Senior Member
Join Date: Dec 2004
Location: Texas
|
Oh yeah - this WILL work - it's just two steps instead of one. This could be fun. I will take a look when I have a couple of hours to spare.
Cheers, Wraven |
quote |
Member
Join Date: Jul 2004
|
i just noticed, all the info you need, including the final link IS in the URL on each page.
|
quote |
Senior Member
Join Date: Dec 2004
Location: Texas
|
nassau,
That was what I was talking about above - take a closer look. The URLs on the second page only link to third page (dynamically generated) where you can get the ACTUAL links to the songs. It would be a double-lookup, but it is still doable. Cheers, Wraven |
quote |
Member
Join Date: Jul 2004
|
the users on my page would still need to do a double lookup wince they need to specify which artist etc they are looking for.
hey, how do i read the URL of an iframe with PHP, if i know that i can do this! that's my only obstacle now that i think of it..... i'm sure you'reon to the same thing |
quote |
Member
Join Date: Jul 2004
|
anyone?
|
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
anybody here post an iMix at iTMS?? | thegelding | Apple Products | 2 | 2004-06-24 17:57 |
British iTMS News Article(s)... iTMS the first step to digital homes? | Paul | Apple Products | 5 | 2004-06-23 17:19 |
Because We Need Another iTMS Thread... | Moogs | Apple Products | 21 | 2004-06-23 12:28 |
I would like to welcome the Third World, err, Europe to iTMS | HOM | Apple Products | 18 | 2004-06-17 10:17 |
iTMS down under?? | thegelding | Apple Products | 14 | 2004-06-07 09:41 |