-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
32 lines (15 loc) · 825 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from selenium import webdriver
import time
from selenium.webdriver.common.by import By
if __name__ == '__main__':
options = webdriver.ChromeOptions()
options.add_argument('headless')
browser = webdriver.Chrome()
url = "https://www.google.com/maps/place/Papa+John's+Pizza/@40.7936551,-74.0124687,17z/data=!3m1!4b1!4m5!3m4!1s0x89c2580eaa74451b:0x15d743e4f841e5ed!8m2!3d40.7936551!4d-74.0124687"
# url = "https://www.google.com/maps/place/Lucky+Dhaba/@30.653792,76.8165233,17z/data=!3m1!4b1!4m5!3m4!1s0x390feb3e3de1a031:0x862036ab85567f75!8m2!3d30.653792!4d76.818712"
browser.get(url)
# review titles / username / Person who reviews
# review_titles = browser.find_element(By.CLASS_NAME, "section-review-title")
#
# print([a.text for a in review_titles])
time.sleep(3)