I want to scrap the names of all the destination that will be shown below from the google maps. The url is
https://www.google.co.in/maps/search/kolkata+metro+station/@22.5458739,88.3482185,15z/data=!3m1!4b1
you can see a list of location on the left hand side in a column.
I ran a code in R to scrape the same. But it is returning an empty value.
Code :
library('rvest')
url <- "https://www.google.co.in/maps/search/kolkata+metro+station/@22.5458739,88.3482185,15z/data=!3m1!4b1"
name <- read_html(url) %>% html_nodes('.section-result-title span') %>% html_text()
How can i approach this question, do I use Maps API for doing so ? If yes, then please guide me how ? What are the other ways to do so ?
Aucun commentaire:
Enregistrer un commentaire