gosom / gosom/google-maps-scraper

error: unexpected page type

Open
#322 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5.9k
Forks
924
Avg merge
5d 13h
Merged PRs (30d)
3

Description

I am getting errors while trying to use the tool. I tried multiple keywords and locations but it is the same error:

```
2026/08/23 18:07:02 job ab38c152-8449-466b-8eda-dd060d883d27 has proxy: false
2026/08/23 18:07:02 running job ab38c152-8449-466b-8eda-dd060d883d27 with 1 seed jobs and 600 allowed seconds
2026/08/23 18:07:03 INFO Downloading browsers...
2026/08/23 18:07:03 INFO Downloaded browsers successfully
{"level":"info","component":"scrapemate","time":"2026-08-23T15:07:04.00832Z","message":"starting scrapemate"}
{"level":"error","component":"scrapemate","error":"unexpected page type","time":"2026-08-23T15:07:10.051843Z","message":"error while processing job"}
{"level":"info","component":"scrapemate","job":"Job{ID: 382fc8e5-338e-47c7-ad3b-d0bda1182089, Method: GET, URL: https://www.google.com/maps/search/%D9%85%D8%B7%D8%A7%D8%B9%D9%85+%D9%81%D9%8A+%D8%A7%D9%84%D8%B1%D9%8A%D8%A7%D8%B6/@24.6877,46.7219,15z, UrlParams: map[hl:ar]}","error":"unexpected page type","status":"failed","duration":6044.5623,"time":"2026-08-23T15:07:10.0528823Z","message":"job finished"}
{"level":"error","component":"scrapemate","error":"unexpected page type","time":"2026-08-23T15:07:10.0542807Z","message":"error while processing job"}
{"level":"info","component":"scrapemate","time":"2026-08-23T15:07:10.0552869Z","message":"scrapemate exited"}
2026/08/23 18:07:10 job ab38c152-8449-466b-8eda-dd060d883d27 scraped successfully

```
The error is "unexpected page type"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported Google Maps request with the Arabic query, location, and hl: ar parameter, then trace where the scraper classifies the returned page and emits "unexpected page type." Compare the returned page with the page types the tool expects; done means this request no longer fails with that error and the intended results are scraped.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.