Jump to content

I want to take information about songs and albums from other web sites...how ?


jd2007

Recommended Posts

basically the idea is you copy and paste off a page, but using string mainipulations

fopen() can open any url like

fopen(http://www.google.com/?serach=php);

if you know xml the idea would be to find those xml tags like if its

<band>Creed</band>

you find the tag <band> and then the tag </band> and say give me the text between it and call that $band make sense?

Link to comment
Share on other sites

find the first index of "Label", and then the index of the newline character after "submitted by".  those are some fairly simple loops... they shouldnt be hard.

 

substring the page with those obtained indices

 

explode the new string by the newline / "<br />" character

 

foreach of the exploded strings, split it among the ":" character, and then store those into an associative array.

 

thats the basic idea.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.