-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEOstats\Google::getSerps('search_term', 10) returning same domain multiple times (and different results) #142
Comments
For debugging purposes, I added: curl_setopt($ch, CURLOPT_VERBOSE, true); To: The output:
When compared with a real search using Internet Explorer (via Charles Web Proxy), the request is:
|
In protected static function getNextSerp ($start, $query)
{
return 0 == $start
? sprintf('search?q=%s&filter=0', $query)
: sprintf('search?q=%s&filter=0&start=%s0', $query, $start);
} To: protected static function getNextSerp ($start, $query)
{
return 0 == $start
? sprintf('search?q=%s&filter=1', $query)
: sprintf('search?q=%s&filter=1&start=%s0', $query, $start);
} ... fixes this problem. More information is provided here: https://support.google.com/gsa/answer/2672256?hl=en. By including |
This has been fixed in my Pull Request #143. |
@jamesspittal I was getting the same issue as well. By any chance has your fix for this been working for you? Also any luck with getting Mobile rankings? |
@MichaelFriedberg Yep. Fix in Pull Request #143 has been working (in that the same domain no longer shows up in multiple search results). There's still some discrepancies I'm seeing in rankings on my local desktop versus using Haven't experimented with the mobile rankings yet, but in theory, that should just be a matter of setting |
When I do a search on my local computer on my local network using Google Chrome for a specific search term (in incognito mode, searching from Melbourne, Australia), I see search results like:
When calling
SEOstats\Google::getSerps($SearchTerm, 10)
from my server (running on AWS in Sydney, Australia), I see similar search results, but rather they look like:In other words, the domain "
company1.edu.au
" (not the actual domain) appears only once (Position 1) when searched from Google Australia on my computer - but for some reason,SEOstats\Google::getSerps($SearchTerm, 10)
returns the same domain (with different internal pages) in the first 5 search results.I have already checked
GOOGLE_TLD
andHTTP_HEADER_ACCEPT_LANGUAGE
in/vendor/seostats/seostats/SEOstats/Config/DefaultSettings.php
(setting them tocom.au
anden-US,en;q=0.8,en-AU;q=0.6
respectively).Thanks in advance.
The text was updated successfully, but these errors were encountered: