SerpScrap icon indicating copy to clipboard operation
SerpScrap copied to clipboard

Add maps/local results detection

Open siparker opened this issue 6 years ago • 2 comments

It would be nice to see Maps results detected in scrapes.

siparker avatar Nov 02 '18 13:11 siparker

Hi, yes would be nice. In what kind of data you are interessted for map results?

ecoron avatar Nov 16 '18 09:11 ecoron

basics i would look for would be if map results are shown and the content of each one.

Would be nice to extend that out to then visit the maps listings for the search and scrape each one of those. the below are what i am using for gmaps selectors currently in chrome selenium. there are some issues but its a start?

google home More Places link class

mp = ".DLOTif"
# CSS selector for all the listings in left column
al = ".uQ4NLd"
# Ad CSS selector for container
ad = ".Z98Wse"
# Image Container CSS selector
img = ".b9tNq"
# company name in left bar css selector
cn = ".dbg0pd"
# company name in the right hand side
cnr = ".kp-header .kno-ecr-pt span"
# right hand address
addr = ".LrzXr"
# rating value
rtng = ".immersive-container .TLYLSe .rtng"
# amount of google reviews text
ratingtext = ".immersive-container .TLYLSe .fl a"
# missing elements class name
missingel = ".qe9kJc"
# phone number
pho = ".lqhpac div:nth-child(4) span"

siparker avatar Jan 02 '19 18:01 siparker