Skip to content

Commit d48d2e9

Browse files
committed
Update README.md, .gitignore, CHANGELOG.md. Update pre-processing logic of 'rating' data field
1 parent da57a45 commit d48d2e9

File tree

5 files changed

+47
-5
lines changed

5 files changed

+47
-5
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,8 @@ Thumbs.db
105105
.pytest_cache/
106106
.pdm.toml
107107
.pdm.lock
108-
.pdm.cache/
108+
.pdm.cache/
109+
110+
111+
# output folder
112+
output/

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [3.1.0] - 2024-04-26
6+
### Added
7+
- Added additional data fields
8+
9+
### Fixed
10+
- Fixed extraction of `Total Reviews` and `Website` data fields
11+
12+
### Changed
13+
- Updated logic of parsing data fields
14+
- Changed output data file name
15+
516
## [3.0.0] - 2024-04-26
617

718
### Fixed

Google map scraper/scraper/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def parse(self):
4343
# Extract rating
4444
try:
4545
rating = soup.find("span", class_="ceNzKf").get("aria-label")
46+
rating = rating.replace("stars", "").strip()
4647
except:
4748
rating = None
4849

Google map scraper/scraper/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
These are settings of the scraper. To see thier details, please visit:
3-
https://zubdata.com/tools/google-maps-scraper/
3+
https://zubdata.com/docs/google-maps-scraper/getting-started/settings/
44
"""
55

66

README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Zubdata - Google Maps Scraper
22

3-
## Version: 3.0.0
3+
## Version: 3.1.0
44

55
## Note:
66
**Our all scrapers are working, if you find any issue or bug please open an issue with the detail of issue. We will try to resolve it quickly for you.**
@@ -13,9 +13,35 @@ Documentation can be found at this [link](https://zubdata.com/docs/google-maps-s
1313
## Features
1414

1515
- User-friendly graphical interface for easy navigation and interaction. 😊
16-
- Scrapes various data from Google Maps, such as business names, addresses, phone number, website, ratings, and total reviews.
16+
- Scrapes various data from Google Maps, such as:
17+
- **Category**
18+
- **Name**
19+
- **Phone Number**
20+
- **Google Maps URL**
21+
- **Website**
22+
- **Address**
23+
- **Total Reviews**
24+
- **Rating**
25+
- **Business Status**
26+
- **Booking Links**
27+
- **Hours**
1728
- Fast and efficient 🚀
1829

30+
## Sample Data
31+
{
32+
"Category":"Restaurant",
33+
"Name":"Veh\u0101ri Village",
34+
"Phone":"0300 0020103",
35+
"Google Maps URL":"https:\/\/www.google.com\/maps\/place\/Veh%C4%81ri+Village\/data=!4m7!3m6!1s0x393cc006c30226c7:0xb71394954cfc0b22!8m2!3d30.0558272!4d72.3348188!16s%2Fg%2F11cmp6z14g!19sChIJxyYCwwbAPDkRIgv8TJWUE7c?authuser=0&hl=en&rclk=1",
36+
"Website":"https:\/\/www.facebook.com\/VehariVillage\/",
37+
"Business Status":"Open\u22c5 Closes 1\u202fam",
38+
"Address":"The Royal Gardens Society, Khanewal Vehari Rd, Vehari, Punjab",
39+
"Total Reviews":"(347)",
40+
"Booking Links":null,
41+
"Rating":"4.2 stars ",
42+
"Hours":"Friday9\u202fam\u20131\u202famSaturday9\u202fam\u20131\u202famSunday9\u202fam\u201312\u202famMonday9\u202fam\u20131\u202famTuesday9\u202fam\u20131\u202famWednesday9\u202fam\u20131\u202famThursday9\u202fam\u20131\u202famSuggest new hours"
43+
}
44+
1945
## Getting Started
2046

2147
To get started with the Google Maps Scraper, follow these steps:
@@ -35,7 +61,7 @@ To get started with the Google Maps Scraper, follow these steps:
3561
python "Google map scraper\starter.py" start
3662
```
3763

38-
`For further helping docs please visit our` [documentation](https://zubdata.com/docs/google-maps-scraper/getting-started/installation/) `page`
64+
`For further helping docs please visit our` [documentation](https://zubdata.com/docs/google-maps-scraper) `page`
3965

4066
## Contributing
4167

0 commit comments

Comments
 (0)