analysing the contents of another web page from my own
Posted: Wed Jul 02, 2008 3:01 pm
Hi
i'm wondering if anyone knows anything about analysing the contents of another web page from my own, just by using the URL. for example (let me make myself clear), one might give the full URL of a website's search results and my website could trawl the html to find a picture and possibly some text related to the picture.
On facebook this is used when you paste an url into a message or a wall post - it shows a picture and some text from the website it refers to.
does anyone even know what this method is called!?
i realise that this may be beyond the scope of this forum but any help would be greatly appreciated. even a point to another forum or website.
i'm basically just looking for a simple method - perhaps using the curl library - or a hint at an algorithm that could be used to scan the html of the desired URL.
i'm relatively new to PHP but i'm quite familiar with javascript. Thank you in advance for any guidance!
Sam
i'm wondering if anyone knows anything about analysing the contents of another web page from my own, just by using the URL. for example (let me make myself clear), one might give the full URL of a website's search results and my website could trawl the html to find a picture and possibly some text related to the picture.
On facebook this is used when you paste an url into a message or a wall post - it shows a picture and some text from the website it refers to.
does anyone even know what this method is called!?
i realise that this may be beyond the scope of this forum but any help would be greatly appreciated. even a point to another forum or website.
i'm basically just looking for a simple method - perhaps using the curl library - or a hint at an algorithm that could be used to scan the html of the desired URL.
i'm relatively new to PHP but i'm quite familiar with javascript. Thank you in advance for any guidance!
Sam