why the difference in google search result using script for search and using a browser for search
- by Jayapal Chandran
I wrote a code to find the position in google search result for a search keyword.
I also did the same with the browser.
Both the results are different.
Let me explain in detail here.
I have a website and i wanted to know on which page number my domain appears for a search string. Like when i search for 'code snippets' i wanted to find in google search on which page number a certain domain appears.
I wrote a php code to search page by page starting from page 1 to page n.
I did the same task using a browser.
The script returned page 4 and when browsed i can see the domain appearing in second page.
here is the search string i use in my code.
/search?hl=en&output=search&sclient=psy-ab&q=code+snippets&start=0&btnG=
and for each request i change the start=0 to start=1, start=2, etc...
and in the response i will check whether my domain appears in it.
any idea for this different in search results?