views:

75

answers:

1

Hi there,

is there a way to rebuild Mac OSX Snow Leopard's Dashboard Widget 'Web Clip' on a PHP website? Something like a crawler or scraper. I thought about using file_get_contents to getting the page content into the page, but how do I select a section on the external page? And does this work with session/login content as well?

I'm happy for any kind of suggestions!

Cheers

A: 

You would have to write an HTML rendering engine in PHP, which would be a pretty big waste of time.

Azeem.Butt
Thanks NSD,but, I don't think I'll need to render the external page... Sorry, I forgot to say: The styles of the external page is not important. I'm just interested in the html and the images, but not in the styles. Possibly, I just need to parse the whole page with file_get_contents, set a selector on the page (like the firebug 'inspect element' function), and then parse everything within the selector. - But how?
Mayko
Then that's nothing at all like Safari's Web Clip functionality.
Azeem.Butt