A
A
Andrey Rumm2015-05-13 02:02:23
Google
Andrey Rumm, 2015-05-13 02:02:23

Collecting Google Search Results in PHP. How to do local search?

Someone talk to me. I feel sad and cold alone in this wasteland of informational vacuum.
Has anyone encountered the issue of automated removal of results based on local (based on a specific city, for example) google search? There are a large number of examples and libraries for extracting serp data. You may be surprised, but for each IP the data will be different.
I took SEOStats at my leisure and finished the ability to specify the location of the request, based on this article. Everything was fine as long as I used one local IP. But then more aggressive scraping came in handy. Having screwed on the automatic rotation of proxy servers, I found out that my method of extracting data using the uule parameter is no longer suitable. The new year 2015 has arrived. Google prioritizes the location data of the IP address from which the request is made (proxy server in my case).
This is where my sadness begins. How to tell Google from a proxy server that I want to get data for a particular city? Thank you, please let's talk.
ps./ Somehow magically allpositions.ru, semrush.com receives this data in a large volume.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
myfirepukan, 2015-05-13
@myfirepukan

Type a query in Google, scroll to the very bottom, there is a line at the bottom:
Click here for details, check out, set your location.

F
frees2, 2015-05-14
@frees2

1 make a request according to Google's charter in the address bar with the necessary logical operators
2 get a rss feed or Google json
3 insert it on the site using php
example simplest
demo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question