Advanced topics in screen scraping
require 'pgbrowser.php'; require 'phpquery.php'; $browser = new PGBrowser('phpquery'); $page = $browser->get('http://www.google.com/search?q=php'); foreach($page->search('li.g') as $li){ echo $page->at('a', $li)->text() . "\n"; }
No comments:
Post a Comment