omkarcloud / google-maps-scraper

👋 HOLA 👋 HOLA 👋 HOLA ! ENJOY OUR GOOGLE MAPS SCRAPER 🚀 TO EFFORTLESSLY EXTRACT DATA SUCH AS NAMES, ADDRESSES, PHONE NUMBERS, REVIEWS, WEBSITES, AND RATINGS FROM GOOGLE MAPS WITH EASE! 🤖
https://www.omkar.cloud/
MIT License
1.11k stars 266 forks source link

user the Options of selenium driver directly #40

Closed amkahal88 closed 1 year ago

amkahal88 commented 1 year ago

Dear, the scraper is working great, except for the language, this is my browser_config:

 browser_config = BrowserConfig(
        headless=True,
        lang="en"

    )

i tried also:

browser_config = BrowserConfig(
        headless=True,
        lang="en-GB"

    )

still getting the results like the business category in German (since i'm in Germany)

can i just pass accept-lang="en-GB" as an argument to the driver directly in a way ?

Chetan11-dev commented 1 year ago

You have 3 Option ordered by how easy they are to do:

  1. Use Free ProtonVpn to connect to US Ip and Scrape
  2. Run it in GitPod using docker-compose see https://github.com/omkarcloud/google-maps-scraper#-how-to-run-it-in-docker
  3. Override create_driver in BaseTask and return a Driver with Options.