RE: [PHP] Re: Parsing HTML
| From: | Jay Blanchard | Date: | Thu, 16 Feb 2006 20:08:18 +0000 |
| Subject: | RE: [PHP] Re: Parsing HTML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-230579@lists.php.net to get a copy of this message | ||
[snip]
Let's say I want to extract some news-items from the www.CNN.com web
page (If you visit CNN's page, you can see the 'MORE NEWS' block at the
right side).
I know how to extract the news-items (or any other data in the page)
using regular expressions, but I wonder if there are other ways. The
code I'm writing will be maintained by other people in the future, and
perhaps regular expressions won't be easy for them to update when the
site changes its format.
Can somebody please give me a short overview of the different ways of
extracting data from HTML?
I hope my question is clear enough now.
[/snip]
This was clear (and just as broad) before, but the answer is going to be
very broad. Have you looked at RSS feeds?