Forum Moderators: coopster

Message Too Old, No Replies

PHP parsing a website

how to's needed..

         

SubXO

7:58 pm on Jun 23, 2004 (gmt 0)

10+ Year Member



I've scoured the net looking for a tutorial on how to parse a webpage but I've come up short handed. Can anyone provide me with some tips on how to get started? Thank you all!

bcolflesh

8:02 pm on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can accomplish this with built-in functions, but you'll be much better off if you have the CURL library installed:

[us3.php.net...]

SubXO

10:48 pm on Jun 23, 2004 (gmt 0)

10+ Year Member



Thank you for the quick response. Can you provide me more information with the built-in functions? it IS possible to write it myself right?

erikcw

11:33 pm on Jun 23, 2004 (gmt 0)

10+ Year Member



Also, can anyone share an example of a regex that will strip out all unwanted page content (except for a list of items)

Thanks!

ergophobe

2:52 pm on Jun 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



erikcw, see under "Grabbing Html Tags" on this page:

[regular-expressions.info...]

Tom