How to get ALL Google search results using PHP

Harry P

Well-known member
Registered
Joined
Feb 3, 2015
Messages
447
Points
28
I want to get all the results from google search for my query but when I try to find something like this

Code:
http://www.google.com/search?client=safari&rls=en&q=forum+web+hosting
I could not get more than 37 pages of results. I have already read about Google advanced search but couldn't understand it. It is possible to use PHP or any programming languages and get all the result pages?
 

kevinhng86

Member
Registered
Joined
Jan 12, 2017
Messages
58
Points
0
Hi harry, instead of using the above line try this one below. The most important on this url is the "start" field and the "filter" field. Filter set to zero will not omit any result. Google display ten result per page, therefore if you are on page 20 you want to start at result 190. The current page in this url is result page 42. Which contain result 410 to 420. Why is it like that? Because page one contain result 0 to 9.

Code:
http://www.google.com/search?rls=en&q=forum+web+hosting&start=410&filter=0
After I finished with my current writing project I might write an article to demonstrate how to query google engine. Nevertheless there is a small drawl back, machine run auto search can't click on google reCaptcha which show up once in a while when you over search.
 
Newer Threads
Replies
1
Views
2,120
Replies
13
Views
9,314
Replies
7
Views
5,157
Replies
34
Views
13,688
Latest Threads
Recommended Threads
Replies
2
Views
3,332
Replies
3
Views
8,917
Replies
9
Views
2,966

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top