Skip to content

Commit 821c38e

Browse files
author
coolgsvirk
authored
Update Justdial Scrapper GUI.py
1 parent 324ecc8 commit 821c38e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

JustDialScrapperGUI/Justdial Scrapper GUI.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def get_rating_count(body):
8383

8484
# Get only digits
8585
rating_count = ''.join(i for i in text if i.isdigit())
86-
return rating_count
87-
86+
return rating_count
87+
8888
@staticmethod
8989
def get_address(body):
9090
return body.find('span', {'class': 'mrehover'}).text.strip()
@@ -111,12 +111,12 @@ def start_scrapping_logic(self):
111111
out_file = open('{0}.csv'.format(self.file_name), 'w')
112112
csvwriter = csv.DictWriter(out_file, delimiter=',', fieldnames=fields)
113113
csvwriter.writerow({
114-
'Name': 'Name',
115-
'Phone': 'Phone',
116-
'Rating': 'Rating',
117-
'Rating Count': 'Rating Count',
118-
'Address': 'Address',
119-
'Location': 'Location'
114+
'Name': 'Name', #Shows the name
115+
'Phone': 'Phone',#shows the phone
116+
'Rating': 'Rating',#shows the ratings
117+
'Rating Count': 'Rating Count',#Shows the stars for ex: 4 stars
118+
'Address': 'Address',#Shows the address of the place
119+
'Location': 'Location'#shows the location
120120
})
121121

122122
progress_value = 0
@@ -238,7 +238,7 @@ def start(self):
238238

239239
self.progress = Progressbar(self.master, orient=HORIZONTAL, length=350, mode='determinate')
240240
self.progress.grid(row=4, columnspan=2)
241-
241+
#Above is the progress bar
242242

243243
if __name__ == '__main__':
244244
root = Tk()

0 commit comments

Comments
 (0)