Web scraping in PHP
I recommend you consider simple_html_dom for this. It will make it very easy. Here is a working example of how to pull the title, and first image. <?php require ‘simple_html_dom.php’; $html = file_get_html(‘http://www.google.com/’); $title = $html->find(‘title’, 0); $image = $html->find(‘img’, 0); echo $title->plaintext.”<br>\n”; echo $image->src; ?> Here is a second example that will do the … Read more