News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Developer Tutorials Blog:
Easy Screen Scraping in PHP with the Simple HTML DOM Library
August 06, 2008 @ 08:40:15

On the Developer Tutorials blog today Akash Mehta looks at screen scraping using a simple DOM library to help make it easy.

In PHP, regular expressions tend to get rather messy, DOM calls can be confusing and verbose, and often the string functions just aren't enough. In this tutorial, I'll show you how to use the middle ground - the open source PHP Simple HTML DOM Parser library, which provides jQuery-grade awesomeness for easy screen scraping without messy regular expressions.

In his examples he shows how to grab the contents of a page (google.com), find and replace information in the HTML and perform a query on the data (like finding each of the news stories out of the front page of slashdot.org).

0 comments voice your opinion now!
screen scraping simple html dom library example tutorial


blog comments powered by Disqus

Similar Posts

php|architect: An overview of the CakePHP framework

Experts Round Table: HTTP Headers and the PHP header() Function

Stefan Mischook's Blog: Video Tutorial: Processing forms with PHP, Part 3

MaltBlue.com: Zend Framework 2 - Hydrators, Models and the TableGateway Pattern

Padraic Brady's Blog: Mysteries Of Asynchronous Processing w/PHP - Pt 3: Spawned Child Processes


Community Events

Don't see your event here?
Let us know!


feature release unittest development opinion laravel5 threedevsandamaybe introduction series laravel interview api community library voicesoftheelephpant podcast framework language wordpress extension

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework