Skip to content

πŸ‘‹ HOLA πŸ‘‹ HOLA πŸ‘‹ HOLA ! ENJOY OUR GOOGLE MAPS SCRAPER πŸš€ TO EFFORTLESSLY EXTRACT DATA SUCH AS NAMES, ADDRESSES, PHONE NUMBERS, WEBSITES, AND RATINGS FROM GOOGLE MAPS WITH EASE! πŸ€–

License

Notifications You must be signed in to change notification settings

loveshizuka/google-maps-scraper

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

74 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

omkar

✨ Google Maps Scraper πŸ€–

πŸ’¦ Enjoy the Rain of Google Maps Leads πŸ’¦

(Programming Language - Python 3)

google-maps-scraper forks Repo stars google-maps-scraper License issues

View


🌟 Get 120 Leads in 10 Minutes! πŸ€–

🌟 Overview

Welcome to the Google Maps Scraper, a powerful scraper designed to scrape upto 1200 Google Map Leads in just 1.6 Hours .

If you're looking to grow your business by connecting with potential leads discovered using Google Maps, but want to avoid the hassle of manually gathering leads from each Google Maps by copying and pasting, you've come at the Right Place.

This Google Maps Scraper is well maintained and and saves data in both CSV and JSON formats for easy use.

Below is a sample showing the data that will be generated as CSV and JSON:

title rating number_of_reviews address img_link link main_category place_id categories
Tamasha 4.1 12483 In Anand House, A 28, KG Marg, Connaught Place, New Delhi, Delhi 110001 https://lh5.googleusercontent.com/p/AF1QipOFfAmtHyXBBWAAPqL8ifQSgDW98xOGa7_WYpmA=w426-h240-k-no https://www.google.com/maps/place/Tamasha/data=!4m7!3m6!1s0x390cfd369e6964e7:0x304898e2f2d5e7a1!8m2!3d28.6298016!4d77.2218419!16s%2Fg%2F11cmr16zjb!19sChIJ52Rpnjb9DDkRoefV8uKYSDA?authuser=0&hl=en&rclk=1 Restaurant ChIJ52Rpnjb9DDkRoefV8uKYSDA Restaurant, Bar, Continental restaurant, Italian restaurant, North Indian Restaurant
Indian Accent 4.7 8152 The Lodhi, Lodhi Rd, CGO Complex, Pragati Vihar, New Delhi, Delhi 110003 https://lh5.googleusercontent.com/p/AF1QipMRaSvBkBK3ipKoWei-gn3IEW-2NBRwVLS-CuR-=w627-h240-k-no https://www.google.com/maps/place/Indian+Accent/data=!4m7!3m6!1s0x390cfd309eebed77:0xfd133b52e7612c26!8m2!3d28.5918336!4d77.2382224!16s%2Fg%2F11c561vl9w!19sChIJd-3rnjD9DDkRJixh51I7E_0?authuser=0&hl=en&rclk=1 Restaurant ChIJd-3rnjD9DDkRJixh51I7E_0 Restaurant, Asian restaurant, Bar, European restaurant, Fine dining restaurant, Indian restaurant
Olive Bar & Kitchen 4.6 6528 Mile 6, One Style, 8, Kalka Das Marg, Seth Sarai, Mehrauli, New Delhi, Delhi 110030 https://lh5.googleusercontent.com/p/AF1QipNv1aHvISiSOPyM0tECLKe5-ND_N5s-p6ZTeKMv=w408-h306-k-no https://www.google.com/maps/place/Olive+Bar+%26+Kitchen/data=!4m7!3m6!1s0x390ce2f15b20d0fd:0xaaa8607911b1bdf!8m2!3d28.5257701!4d77.1841311!16s%2Fg%2F1q64qjzb6!19sChIJ_dAgW_HiDDkR3xsbkQeGqgo?authuser=0&hl=en&rclk=1 European restaurant ChIJ_dAgW_HiDDkR3xsbkQeGqgo European restaurant, Bar, Cafe, Fine dining restaurant, Italian restaurant, Mediterranean restaurant, Restaurant
Kiyan 4.7 639 NH-8, Samalkha, New Delhi, Delhi 110037 https://lh5.googleusercontent.com/p/AF1QipM_HsL2Xojc7nHdzW14rV2Cv3joGalRODYx2fZF=w408-h278-k-no https://www.google.com/maps/place/Kiyan/data=!4m7!3m6!1s0x390d1c07eff4422b:0x8abf827be567fe7e!8m2!3d28.531523!4d77.103096!16s%2Fg%2F1pwfbhfv9!19sChIJK0L07wccDTkRfv5n5XuCv4o?authuser=0&hl=en&rclk=1 Fine dining restaurant ChIJK0L07wccDTkRfv5n5XuCv4o Fine dining restaurant, Breakfast restaurant, Continental restaurant, European restaurant, Mughlai Restaurant, North Indian Restaurant, Thai restaurant
Thyme Restaurant - The Umrao 4.5 555 National Highway 8, Rajokri Rd, D Block, Samalkha, Pushpanjali Farms, New Delhi, Delhi 110037 https://lh5.googleusercontent.com/p/AF1QipPhEscYrXx_m8po3qEbaeA54iOslEhRA2CXgP_Y=w408-h247-k-no https://www.google.com/maps/place/Thyme+Restaurant+-+The+Umrao/data=!4m7!3m6!1s0x390d1bfec9e42687:0x14d497d545bba4b!8m2!3d28.525558!4d77.098439!16s%2Fg%2F11b5wq57rd!19sChIJhybkyf4bDTkRS7pbVH1JTQE?authuser=0&hl=en&rclk=1 Fine dining restaurant ChIJhybkyf4bDTkRS7pbVH1JTQE Fine dining restaurant, Breakfast restaurant, Chinese restaurant, Continental restaurant

πŸš€ Getting Started

If you are not a techy person or don't know how to use git. You can follow this video to make bot run.

Let's get started by generating Google Maps Leads by following these simple steps

1️⃣ Clone the Magic πŸ§™β€β™€οΈ:

git clone https://github.com/omkarcloud/google-maps-scraper
cd google-maps-scraper

2️⃣ Install Dependencies πŸ“¦:

python -m pip install -r requirements.txt

3️⃣ Let the Rain of Google Map Leads Begin 😎:

python main.py

Once the scraping process is complete, you can find your leads in the output directory.

Google Maps Data Scraper CSV Result

Video Demo

Watch this video to see the bot in action!

Google Maps Video Tutorial

πŸ€” FAQs

❓ I am seeing error like: β€œFileNotFoundError: [Errno 2] No such file or directory: 'build/115/chromedriver.exe” when running β€œpython main.py”

This is a Temporary Bug due which occurs in Chrome 115 due to chromedriver-autoinstaller dependency. The fix is to:

  1. Go to https://googlechromelabs.github.io/chrome-for-testing/#stable and download "chrome driver" based on your chrome version. (Most likely 115)

  2. Extract the zip file

  3. Place the "chromedriver" file (or "chromedriver.exe" if you are using Windows) directly into the build/ folder. Make sure you're not placing the extracted folder but only the chrome driver file itself.

    Screenshot (520).png

  4. Run python main.py and program should run successfully.

❓ The scraper is only retrieving 5 results. How can I scrape all Google Maps search results?

A: Open the file src/config.py and comment out the line that sets the max_results parameter.

By doing so, you can scrape all the search results from Google Maps. For example, to scrape all restaurants in Delhi, modify the code as follows:

queries = [
    {
        "keyword": "restaurants in delhi",
        # "max_results" : 5,
    },
]

❓ I want to scrape search results for a specific business in a particular location. How can I achieve that?

A: Open the file src/config.py and update the keyword with your desired search query.

For example, if you want to scrape data about stupas in Kathmandu πŸ‡³πŸ‡΅, modify the code as follows:

queries = [
    {
        "keyword": "stupas in kathmandu",
    },
]

❓ How can I filter google map search results?

A: You have the option to apply filters to your Google Maps search results using the following parameters:

  1. min_rating
  2. min_reviews
  3. max_reviews

To specify filters, open src/config.py and specify your filters.

The Following example will scrape only those listings with a minimum of 5 reviews, and a maximum of 100 reviews

queries = [
    {
        "keyword": "restaurants in delhi",
        "min_reviews": 5 ,
        "max_reviews": 100,
    },
]

❓ Can I scrape more than one query using this script?

A: Absolutely! Open src/config.py and add as many queries as you like.

For example, if you want to scrape restaurants in both Delhi 😎 and Bangalore πŸ‘¨β€πŸ’», use the following code:

queries = [
    {
        "keyword": "restaurants in delhi",
    },
    {
        "keyword": "restaurants in bangalore",
    }
]

❓ How to Scrape Additional Information like Website, Phone, Working Hours, Booking Appointment Link, Price Range?

We offer a Pro Version of our Google Maps Scraper that enables you to scrape more data points like working hours, booking appointment links, and price range for the scraped locations. Getting information like Working Hours, Booking Appointment Link and Prices Range greatly assists in Prospecting.

Below is an example of the sample lead scraped by Pro Version:

{
    "title": "The GT Road",
    "link": "https://www.google.com/maps/place/The+GT+Road/data=!4m7!3m6!1s0x390cfd372e5302e9:0x6794ee3f98499539!8m2!3d28.6331276!4d77.2227344!16s%2Fg%2F11c6q8wqnx!19sChIJ6QJTLjf9DDkROZVJmD_ulGc?authuser=0&hl=en&rclk=1",
    "main_category": "Barbecue restaurant",
    "rating": 4.3,
    "reviews": 9984,
    "website": null,
    "phone": "097177 20084",
    "address": "The GT Road, M-39, Shankar Market, Block M, Connaught Place, New Delhi, Delhi 110001",
    "place_id": "ChIJ6QJTLjf9DDkROZVJmD_ulGc",
    "status": "Open \u22c5 Closes 3:30\u202fpm \u22c5 Reopens 7\u202fpm",
    "price_range": "\u20b9\u20b9",
    "description": null,
    "reviews_per_rating": {
        "1": 385,
        "2": 250,
        "3": 893,
        "4": 2906,
        "5": 5550
    },
    "reviews_link": "https://search.google.com/local/reviews?placeid=ChIJ6QJTLjf9DDkROZVJmD_ulGc&q=The+GT+Road&authuser=0&hl=en&gl=IN",
    "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipMc3kD_A5V7Lcons7yB5pcF7yY4BMGyFXfjqZw5=w408-h271-k-no",
    "images": [
        {
            "thumbnail": "https://lh5.googleusercontent.com/p/AF1QipMc3kD_A5V7Lcons7yB5pcF7yY4BMGyFXfjqZw5=w447-h298-k-no",
            "title": "All"
        },
        ...
    ],
    "hours": [
        {
            "day": "Monday",
            "times": [
                "12\u20133:30\u202fpm",
                "7\u202fpm\u201312\u202fam"
            ]
        },
        ...
    ],
    "menu": {
        "link": null,
        "source": null
    },
    "order_online_links": [
        {
            "link": "https://www.dineout.co.in/delhi/the-gt-road-connaught-place-central-delhi-31393",
            "source": "dineout.co.in"
        },
        {
            "link": "https://www.eazydiner.com/delhi-ncr/the-gt-road-connaught-place-cp-central-delhi-643774",
            "source": "eazydiner.com"
        }
    ],
    "reservations": [
        {
            "link": "https://www.dineout.co.in/delhi/the-gt-road-connaught-place-central-delhi-31393",
            "source": "dineout.co.in"
        },
        {
            "link": "https://www.eazydiner.com/delhi-ncr/the-gt-road-connaught-place-cp-central-delhi-643774",
            "source": "eazydiner.com"
        }
    ],
    "owner": {
        "id": "102128808953878746577",
        "link": "https://www.google.com/maps/contrib/102128808953878746577",
        "name": "The GT Road (Owner)"
    },
    "categories": [
        "Barbecue restaurant",
        "Afghan restaurant",
        "Buffet restaurant",
        "Mughlai Restaurant",
        "North Indian Restaurant",
        "Restaurant"
    ],
    "coordinates": {
        "latitude": 28.633127599999998,
        "longitude": 77.2227344
    },
    "plus_code": "J6MF+73 New Delhi, Delhi",
    "complete_address": {
        "borough": "Shankar Market, Block M, Connaught Place",
        "city": "New Delhi",
        "country_code": "IN",
        "postal_code": "110001",
        "state": "Delhi",
        "street": "M-39"
    },
    "time_zone": "Asia/Calcutta",
    "about": [
        {
            "id": "service_options",
            "name": "Service options",
            "options": [
                {
                    "enabled": true,
                    "name": "Kerbside pickup"
                },
                {
                    "enabled": true,
                    "name": "No-contact delivery"
                },
                {
                    "enabled": true,
                    "name": "Delivery"
                },
                {
                    "enabled": true,
                    "name": "Takeaway"
                },
                {
                    "enabled": true,
                    "name": "Dine-in"
                }
            ]
        },
        ...
    ],
    "user_reviews": [
        {
            "description": "This is the best place to have buffet with reasonable price. Amazing varieties in both veg and non-veg. Starting with grilled barbeque delicacies with some good main course. The desserts have amazing varieties as well. The staff is very courteous and ambience is good as well. Been there 4-5 times and never got disappointed. Must go place in Delhi for having buffet.",
            "images": [
                "https://lh5.googleusercontent.com/p/AF1QipP6VVoRDN4zkUQoO83f2g8_UR3xJBvUpIhsWyH1=w150-h150-k-no-p",
                "https://lh5.googleusercontent.com/p/AF1QipPCLpnyV69Z7msHAbVR5CfFBoRN1WWsLW56RxHr=w150-h150-k-no-p",
                "https://lh5.googleusercontent.com/p/AF1QipPb-4l2XVkr9PMPeKIuGQXjSJl_5LLm4qaUBStA=w150-h150-k-no-p",
                "https://lh5.googleusercontent.com/p/AF1QipPBVNpaLDM9pbG5MxHE33Kw8b_i-JQ13tm4jc7_=w150-h150-k-no-p",
                "https://lh5.googleusercontent.com/p/AF1QipPwV_xGCzTFQqFj3lCay_lobbUgTpoVDGP29D8a=w150-h150-k-no-p",
                "https://lh5.googleusercontent.com/p/AF1QipP-L2M9nPtfjBwZEcLQs-bmWt8x2KpSX9sEYLjC=w150-h150-k-no-p",
                "https://lh5.googleusercontent.com/p/AF1QipPIZWv_JB4VQ6ohArUovoYdmeRrlfFMZRx4x01p=w150-h150-k-no-p"
            ],
            "name": "mitul srivastava",
            "profile_picture": "https://lh3.googleusercontent.com/a-/AD_cMMReBC-mV4eJX3vlAaBsIhonvET4UzDCxReaiuRQL2AGSa8=s120-c-rp-mo-ba3-br100",
            "rating": 5,
            "when": "a month ago"
        },
        ...
    ],
    "cid": "7463852439365063993",
    "data_id": "0x390cfd372e5302e9:0x6794ee3f98499539"
}

Moreover, the Pro Version is 3 times faster than the Free Version.

❓ How to get the Pro Version?

Follow these simple steps:

  1. Star the Repository Star the Repository

  2. Send Email to chetan@omkar.cloud with following template. Replace YOUR_GITHUB_USERNAME with your github username.

Subject: Request Scraper
Content: I have starred the repository as YOUR_GITHUB_USERNAME. Kindly send the scraper.
  1. The Pro Scraper will be delivered to you within 24 hours and you can start scraping google map leads.

Star the Repository

❓ How much time does it take to scrape "n" searches?

On average, each Google Maps search gives 120 listings. It takes approximately 10 minutes to scrape these 120 listings.

To calculate the number of hours it takes to scrape "n" searches, you can google search this formula substituting n with number of searches you want to conduct:

n * 10 minutes in hour

For example, if you want to scrape 10 google map queries or 1200 listings, it will take around 1.6 hours.

❓ How can I utilize the data obtained from Google Maps?

A: Most people scrape Google Maps Listings to sell things!

For example, you can search for restaurants in Amritsar and pitch your web development services to them.

You can also find real estate listings in Delhi and promote your exceptional real estate software.

Google Maps is seriously a great platform to find B2B customers to sell things to!

Love It Star It!

Stargazers repo roster for @omkarcloud/google-maps-scraper

About

πŸ‘‹ HOLA πŸ‘‹ HOLA πŸ‘‹ HOLA ! ENJOY OUR GOOGLE MAPS SCRAPER πŸš€ TO EFFORTLESSLY EXTRACT DATA SUCH AS NAMES, ADDRESSES, PHONE NUMBERS, WEBSITES, AND RATINGS FROM GOOGLE MAPS WITH EASE! πŸ€–

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%