gosom / google-maps-scraper

scrape data data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place
MIT License
952 stars 129 forks source link

Playwright issue #18

Open mo-tech55 opened 1 year ago

mo-tech55 commented 1 year ago
root@v2202309155727239413:~/code/google-maps-scraper# go build
# github.com/gosom/scrapemate/adapters/fetchers/jshttp
vendor/github.com/gosom/scrapemate/adapters/fetchers/jshttp/jshttp.go:126:25: undefined: playwright.BrowserNewContextOptionsViewport
# github.com/gosom/google-maps-scraper/gmaps
gmaps/job.go:96:16: page.WaitForNavigation undefined (type playwright.Page has no field or method WaitForNavigation)
gmaps/job.go:96:45: undefined: playwright.PageWaitForNavigationOptions
gmaps/place.go:80:16: page.WaitForNavigation undefined (type playwright.Page has no field or method WaitForNavigation)
gmaps/place.go:80:45: undefined: playwright.PageWaitForNavigationOptions
root@v2202309155727239413:~/code/google-maps-scraper# 

I executed the commands from this section but get the above error. The error is on my debian server with go version 1.21.1. I have the same go version on my local machine and it worked there. I tried cleaning the cache wit these commands but it did not help go clean -cache go clean -modcache

gosom commented 11 months ago

Sorry for the very late reply here.

Have you fixed the issue?

This does not seem something code related but more like machine/environment.

if you are still in trouble give the docker a try.