how-to-scrape-data-from-an-interactive-google-map-or-store-locator

At times, the data that you need to extract from the website could be within the map.

A general scenario might include scraping data from Google Maps having different store locations.

Now, let’s understand how to utilize a web scraper for scraping data from a communicating map.

Here, we will extract store locators Google Maps for phone numbers, addresses, as well as emails.

A Powerful Data Scraper

Here, we will use X-Byte’s powerful Google Maps web scraper, which can deal with any websites. Ensure to download as well as install X-Byte’s store locator data scraper before you start.

We would also extract data from store locator page of Long & Mcquade’s Ontario.

How to Extract Data from Locations Maps?

How to Extract Data from Locations Maps

Now, the time has come to do scraping.

Remember that each map is different. Anyone that you deal with may look diverse than one that we are extracting from. Although, this guide needs cover general scenario.

    1. Install as well as open X-Byte Scraper. Click on the “New Project” as well as enter a URL from where you are scraping data. Here, we are extracting data from Ontario store locator on a Long & Mcquade site. When submitted, a URL would render inside an app as well as “Select” command would be made by default.
step-1
    1. Through clicking on “location pins” on a map, it will make a newer selection on left hand sidebar, and rename the selection to “location”. Then, click on the second pin to choose them all.
step-2
    1. After that, click on PLUS (+) symbol next to the “location” selection and click on the Advanced option and select “Begin New Entry” option. Then rename a command to the “map”.
step-3
    1. Utilize the icon given next to “extract name” option to delete that.
step-4
    1. Then click on PLUS (+) symbol next to the “map” command as well as select the “Click” option. One pop-up will come asking if it is the next page key. Then click on the “No” option and select “Continue executing the current template”
step-5
step-5.1
    1. After that, click on PLUS (+) symbol next to the “map” selection as well as select the “select” option. Utilize this command for clicking on a location name, which comes on the top of a location pin on a map. You may need to press the buttons Ctrl+2 from your keyboard to choose a location name rather than the whole div. Just rename the selection with “location_name”
step-6
step-6.1
    1. After that, click on PLUS (+) symbol next to the “location_name” selection as well as add the “extract” option. It will scrape name of every location.
step-7
    1. Also, let’s scrape the phone numbers of every location. For doing this, Hold the shift button over the “location_name” choice for making its PLUS (+) symbol appear, then click on it and add the command ‘Relative Select’. Using this command, just click on a name of location as well as then on the phone number. Once more, you may need to utilize Ctrl+2 keys for selecting a phone number rather than the entire div. One arrow will come to indicate a relationship that you are making.
step-8
step-8.1

X-Byte is now scraping the location names as well as phone numbers for every location.

Scrape Emails and Store Addresses from the Map

In this map, every location has the link of viewing more store details. Now, we will instruct X-Byte to click on the links as well as scrape every store’s email address and address.

    1. Just click on PLUS (+) symbol next to the “map” command as well as select the ‘Select’ command. After that, click on the link “View Store Details” on a map to choose it. Then rename this selection as “store_details”
scrape-emails-and-store-addresses-from-the-map
scrape-emails-and-store-addresses-from-the-map
    1. Then click on PLUS (+) symbol next to “store_details” option and select “Click” command.
scrape-emails-and-store-addresses-from-the-map
    1. One pop-up will come asking if it is the link of “next page”. Then click on “No” option and make a new template called “store_page”.
scrape-emails-and-store-addresses-from-the-map
    1. The page of Store Details will concentrate within the app as well as a new ‘Select Command’ would be created within the new command template. Utilize this command for selecting the business address. Rename the selection with “address1”
scrape-emails-and-store-addresses-from-the-map
    1. The website codes address of every business in double parts. We would click on PLUS (+) symbol next to a page selection as well as add one more Select command for scraping the address’ second part. Rename that to “address 2”.
scrape-emails-and-store-addresses-from-the-map
scrape-emails-and-store-addresses-from-the-map
    1. Finally, repeat the earlier step for adding one more Select command as well as click on an email ID for a store. Rename the selection with “email”. You may repeat that step for scraping other extra details from the page.
scrape-emails-and-store-addresses-from-the-map

Run Your Scraper

Now, it’s time to scrape all the information you have chosen for all map locations.

Just click on green colored button “Get Data” on left sidebar. So that, you can run, test, or schedule the scraping job.

Here, we would run that straight away. X-Byte would now go as well as collect the data that you have chosen.

Final Thoughts

Once X-Byte has done scraping the selected data, you can download it in the JSON or Excel file.

sample-data

In case, you have any queries about the project, contact us through live chat option in our site and we will help you.

Happy scraping!

Send Message

    Send Message