Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8974413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:40:30+00:00 2026-06-15T18:40:30+00:00

I can get the source code of the search result page. So my question

  • 0

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 />";}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:40:31+00:00Added an answer on June 15, 2026 at 6:40 pm

    I’ll answer my own question. – -|||

    Google actually keeps the old version. To use that version, first search something, then scroll to the bottom and click “Switch to basic version”.

    Now only 20 images are displayed on each page and the url contains page parameters.

    Because it’s displaying 20 images each page, the second page’s url has the parameter:

    start=20
    

    and the third page will be

    start=40
    

    This parameter: sout=1 is needed in the url to tell google you want the basic version.

    To conclude, the simplest google image search url with page number would be:

    $url = "https://www.google.com/search?tbm=isch&sout=1&start=" . ($pageNum -1)*20. "&q="  . $key_word ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get source code off the internet using SVN? I'm trying to
How can I get source code from WebBrowser component? I want to get source
I'm trying to get the source of an internal domain page can have it
Edit: You can get the full source here: http://pastebin.com/m26693 Edit again: I added some
Can I get somehow(from a database or other source) a percentage of the phones
How can I get GDB to print all the source files that it recognises?
WHere can I get a XD version of dojo source like the one hosted
Is there a way I can ask Visual source safe to get all the
How can I get a generic cx ID for using the custom search API
I am in search for a single function to beautify code. I will get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.