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
973 stars 133 forks source link

Apple M1 docker platform issue (Multi-platform image is missing) #51

Open OriginalEveres opened 6 months ago

OriginalEveres commented 6 months ago

while running the docker command

touch results.csv && docker run -v $PWD/example-queries.txt:/example-queries -v $PWD/results.csv:/results.csv gosom/google-maps-scraper -depth 1 -input /example-queries -results /results.csv -exit-on-inactivity 3m   

I've got

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

which could be fine, because it is only a warning, but I'm getting

playwright: target closed along with job finished with error.

I was able to run it by building it with go and running localy.

gosom commented 1 month ago

@OriginalEveres I will need some help here because I am not a MacOS user

fexd12 commented 1 month ago

@OriginalEveres instead used docker hub image, you can compile your own docker image. Just replace the env ENV GOARCH=amd64 to ENV GOARCH=arm64 on Dockerfile and build a new image with full compatible arm64 devices. its worked for me.