Skip to content

Commit 56711b8

Browse files
committed
add days
1 parent bac0aca commit 56711b8

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

GoogleMapspy/var.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ def json(self):
141141
"phone": self.phone,
142142
"google_place_id": self.google_place_id,
143143
"review_ids": self.review_ids,
144-
"url":self.url
144+
"url": self.url,
145+
"days":self.days,
145146
}
146147

147148

@@ -211,8 +212,6 @@ def likes(self):
211212
def id(self):
212213
return self.data[61] if len(self.data) > 61 else None
213214

214-
215-
216215
def json(self):
217216
return {
218217
"contrib_url": self.contrib_url,

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GoogleMapsPY
22

3-
GoogleMapsPY aim to scrape data from Google Maps without Google API
3+
GoogleMapsPY aim to scrape data from Google Maps without Google API or Browser
44

55

66
## Functions
@@ -73,4 +73,28 @@ maps = GoogleMaps(lang="en", country_code="eg")
7373
url = "https://www.google.com/maps/place/%D9%86%D8%A7%D8%AF%D9%8A+%D8%A7%D9%84%D9%85%D9%87%D9%86%D8%AF%D8%B3%D9%8A%D9%86+%D8%AF%D9%85%D9%8A%D8%A7%D8%B7+%D8%A7%D9%84%D8%AC%D8%AF%D9%8A%D8%AF%D8%A9%E2%80%AD/@31.4438138,31.7206443,14.44z/data=!4m6!3m5!1s0x14f9e3054ae0727f:0xde8f78c8fa6ac846!8m2!3d31.4519438!4d31.6843306!16s%2Fg%2F1pty8slyq?entry=ttu"
7474
for i, v in enumerate(maps.get_reviews(url=url, sleep_time=1)):
7575
print(i, v)
76-
```
76+
```
77+
78+
### Place object property:
79+
| name | type | return |
80+
|-------------------|-------|--------------------------------------|
81+
| expensive | str | expensive level |
82+
| reviews | dict | reviews url, count |
83+
| rate | float | rate |
84+
| website | dict | website url |
85+
| location | dict | location dict of latitude, longitude |
86+
| name | str | name of place |
87+
| category | list | category |
88+
| type2 | list | type2 |
89+
| address | dict | address |
90+
| images | dict | images (main image) |
91+
| tags | list | tags |
92+
| short_tags | list | short_tags |
93+
| lang | str | language |
94+
| lang_code | str | language_code |
95+
| search_google_url | str | search_google_url |
96+
| phone | str | phone |
97+
| google_place_id | str | google_place_id |
98+
| review_ids | list | review_ids |
99+
| url | str | url |
100+
| days | list | open in days |

0 commit comments

Comments
 (0)