Coder Social home page Coder Social logo

baksben / scraping-reviews-from-googlemaps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from majidend/scraping-reviews-from-googlemaps

0.0 0.0 0.0 6 KB

This is a simple script with python to scrap Google Maps reviews and ratings.

License: MIT License

Python 100.00%

scraping-reviews-from-googlemaps's Introduction

Google Maps Reviews Scraper

A python script to scrape reviews from google maps.

Requirements

  1. Python 3

  2. PIP (package manager)

  3. Chrome/Firefox driver

  4. 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.

How to use?

  1. 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"
    
  2. Run the app.py file.

    python ./app.py
    

Options

Show browser during an scraping

Comment the headless tag from selenuim.

# options.add_argument("--headless")  # show browser or not

Change output filename

You can change it in def write_to_xlsx

df.to_excel('what_you_like.xlsx')

Scroll slower (problem with Google or network limits)

Go to def scrolling, change sleeping time

time.sleep(your_new_time_in_seconds)

License

This source is licenced under MIT Licence, for more information read LICENSE file.

scraping-reviews-from-googlemaps's People

Contributors

majidend avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.