-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
The Problem:
for any query im getting 0 result event for your example here. i found the reason the localservies/prolist from google is not working anymore see here. I cant find any alternative than using gmap link directly.
Query and Output:
Query:
$ python mapScraperX.py "Gym in Seville Spain"
Output:
Mode: Single query
Processing query: 'Gym in Seville Spain'
Found 0 results for 'Gym in Seville Spain'
No results found.
HERE IS HOW I FOUND IT
CHANGED placesCrawlerV2.py(L21-24):
session = AsyncHTMLSession()
url = f'https://www.google.com/localservices/prolist?hl={lang}&gl={country}&ssta=1&q={query}&oq={query}&src=2&lci={pagination}'
r = await session.get(url)
await r.html.arender(timeout=10)
print(f"\n----\n{r.html.find('body', first=True).text}\n----") // to test the output
OUTPUT:
Mode: Single query
Processing query: 'Gym in Seville Spain'
Scraping 'Gym in Seville Spain': 0results [00:00, ?results/s]
----
410.
That’s an error.
The server cannot process the request because it is malformed. It should not be retried.
That’s all we know.
----
Found 0 results for 'Gym in Seville Spain'
No results found.
Reactions are currently unavailable