Forum Moderators: phranque

Message Too Old, No Replies

Script to grab data from a website?

         

duckxtales

9:55 pm on Mar 23, 2005 (gmt 0)

10+ Year Member



where can i find a PHP script that can grab information from a website? The site i want to grab information from doesn't have RSS feed implemented yet, but I'm guessing there is a way to get the headlines and put it onto my site. How can that be done?

thanks,
Pat

pavlovapete

10:52 pm on Mar 23, 2005 (gmt 0)

10+ Year Member



Hi duckxtales,

this might get you started

<snip>

Cheers

[edited by: trillianjedi at 7:43 am (utc) on Mar. 24, 2005]
[edit reason] Please see TOS, thanks [/edit]

duckxtales

6:43 am on Mar 25, 2005 (gmt 0)

10+ Year Member



umm okay.. it got snipped... can someone show me where to get this kind of script?

Woz

7:01 am on Mar 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



duckxtales,

There are various script directories out there, hotscripts and planetsourcecode come to mind but there are many more. Have a look through those two or similar and you should find something that will do what you want with a little customising.

Onya
Woz

rocknbil

5:01 pm on Mar 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



duckxtales - what you describe is called "page scraping" and is generally disliked by the site owners.

But. If you look into the perp lwp module, it will retrieve and store pages. You'll have to do the dirty work of sifting through the pages to extract what you want.

Believe me compromising and choosing a site with a feed is a much easier path.