Coder Social home page Coder Social logo

google-map-scraper-1's Introduction

Google Map Scraper

Google Map Scraper using python, selenium and headless chromium. Only support linux at the moment.

Prerequisite

Miniconda or Anaconda

chromium

Installation

First time installation need to run preinstall.sh to install all python dependencies and checks needed applications on PATH.

chmod +x preinstall.sh
./preinstall.sh

Scraping can be initialized by executing main.py using following command and configuration respectively:

python main.py pizza
usage: main.py [-h] [--location LOCATION] [--limit LIMIT] [--output OUTPUT]
               keyword

positional arguments:
  keyword              search query in google map

optional arguments:
  -h, --help           show this help message and exit
  --location LOCATION  specific location of keyword
  --limit LIMIT        limit of search result
  --output OUTPUT      output file of scraped data

Result is stored as tsv (tab-separated values) format in the same location as --output parameter (default location is output.tsv).

$ head output.tsv
title   details location        website
Domino's        Stan Pizza      #02, 166 Woodlands Street 13, 525       https://www.dominos.com.sg/
Domino's Jurong Pizza   6 Jurong West Ave 1, #01-03 Jurong Green CC     https://www.dominos.com.sg/
Domino's Jurong East    Pizza   Blk, 202 Jurong East Street 21, #01-115 https://www.dominos.com.sg/
Domino's Bukit Timah    Pizza   8 Chun Tin Rd   https://www.dominos.com.sg/

google-map-scraper-1's People

Contributors

naimazizi avatar

Watchers

James Cloos 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.