A python script to scrape reviews from google maps.
Install requirement.txt file using PIP.
pip install -r requirements.txt
Question: Where to download web browser driver?
Answer: Follow links in Driver/driver_links.txt
.
Put URL of your location reviews and driver path in env.py
Example:
URL = "https://www.google.com/maps/place/Google+UK/@51.5332608,-0.1304879,17z/data=!4m7!3m6!1s0x48761b3c54efa6e1:0xc7053ab04745950d!8m2!3d51.5332609!4d-0.1260032!9m1!1b1"
DriverLocation = "./Driver/chromedriver.exe"
Run the app.py
file.
python ./app.py
Comment the headless tag from selenuim.
# options.add_argument("--headless") # show browser or not
You can change it in def write_to_xlsx
df.to_excel('what_you_like.xlsx')
Go to def scrolling
, change sleeping time
time.sleep(your_new_time_in_seconds)
This source is licenced under MIT Licence, for more information read LICENSE
file.