I can get the source code of the search result page. So my question is about how to get MORE. For google, it only shows the first 20 image results in the source code I get, for Yahoo it's about 50. Because in both cases real people need to scroll down the page to see more search result.
Question: Is there anyway the script can do the "scroll down" for me so I can get more results?
The code I'm using:
require_once('simple_html_dom.php');
$url = "https://www.google.com/search?tbm=isch&q=cool+image";
$html = file_get_html($url);
foreach($html->find('img') as $element) {
$image_url = $element->src;
echo $image_url, "<br />";}