I'm using: http://simplehtmldom.sourceforge.net/ and noticed that in the examples, and trying to scrape certain sites, only some of them return results.
I'm using:
include_once('../../simple_html_dom.php');
// Create DOM from URL or file
$website = 'http://www.digg.com/';
$html = file_get_html($website);
// Find all images
foreach($html->find('img') as $element)
echo "<img src=\"" . $website . $element->src . "\"" . '<br>';
Which shows a bunch of thumbnails, but they are pretty much blank (and it's not returning all thumbnails).
Is it because they have some sort of htaccess restrictions on people? This happens for multiple websites.