serp-spider / search-engine-google

:spider: Google client for SERPS
https://serp-spider.github.io
Other
165 stars 61 forks source link

Faking location with &gs_l= #103

Closed LunarDevelopment closed 5 years ago

LunarDevelopment commented 6 years ago

https://www.google.com/search?ei=N949W4T-FMKegAbkvrGIDQ&q=seo&oq=seo&gs_l=psy-ab.3..35i39k1j0i131i67k1j0i67k1l6j0i7i30k1j0i67k1.3416.3416.0.3713.1.1.0.0.0.0.78.78.1.1.0....0...1.1.64.psy-ab..0.1.78....0.Q133s747Kik

The above is a search query which Google Chrome has included a geolocation parameter with, does anyone have experience in using this with SERP SPIDER to fake a location during searches ?

gsouf commented 6 years ago

Hi @LunarDevelopment What is your actual issue with this?

LunarDevelopment commented 6 years ago

Just a question / discussion, not an issue.

Though if it's possible to fake locations using search params like the above or even "near=location" then it could be a feature request I suppose.

gsouf commented 6 years ago

I'm not using fake location, but as far as I know I think that now google gives more importance to your ip location instead of the params in the url.

LunarDevelopment commented 5 years ago

Seems pretty close to faking location by setting gs_l param (unfortunately you need to get your hands on a string from the location you want to fake)

Easy to set : $url->setParam('gs_l', 'psy-ab.3...blah.blah.blah');