How to Scrape Phone Numbers from Google Maps using Octoparse.
Downloading Octoparse:
https://octoparse.com?fpr=aus2f
30% discount with the coupon RFL30
To get your first 100 B2B leads for free:
https://scrap.id/s/1xY
For a Web Scraping request:
[email protected]
XPaths used:
Scroll: //div[@role="feed"]
Loop Item: //div[@role="feed"]//a[@aria-label and starts-with(@href, "https://www.google.com/maps")]
Title: (//div[@role="main" and @aria-label]//h1)[last()]
Rating: //*[following-sibling::span[contains(@aria-label, "star")][1]]
Reviews: //span[contains(@aria-label, "review") and contains(text(), "(")]
Category: //button[contains(@jsaction, "category")]
Address: //button[@data-item-id="address"]
Website: //a[contains(@aria-label, "Website")]
Phone_Number: //button[starts-with(@aria-label, "Phone:")]
Photos: //div[contains(text(), "photo")][preceding-sibling::img[1]]
Opening_Hours: //div[contains(@jsaction, "openhours")]/following-sibling::div[1]//table//td[position() LESS-THAN SIGN 3]//*[not(*)]