The Google Maps scraper browser keeps hanging on Windows. We've tried setting environment variables, but scrapemate doesn't expose browser launch arguments through its API.
✅ Enhanced debug logging
✅ Windows OS detection
✅ Environment variables set in main.go init() function
✅ Environment variables set in filerunner.go as backup
The scraper is still hanging, which means environment variables aren't being respected by Playwright Go/scrapemate.
Since scrapemate doesn't support browser launch arguments, we need to:
- Fork https://github.com/gosom/scrapemate
- Add
WithBrowserArgs([]string)option function - Pass args to Playwright Go's browser launch
- Update
go.modwith replace directive
- Clone scrapemate locally
- Make changes
- Uncomment/modify replace in
go.mod:replace github.com/gosom/scrapemate v0.9.6 => ../scrapemate
Open an issue/PR on scrapemate to add browser args support.
Since the command is hanging, we should:
- Stop the hanging process
- Decide on approach (fork vs local modify)
- Implement browser args support in scrapemate
- Test with Windows-compatible args
[]string{
"--no-sandbox",
"--disable-dev-shm-usage",
"--disable-blink-features=AutomationControlled",
}