We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16405fe commit 871b257Copy full SHA for 871b257
writing_clean_data.py
@@ -20,8 +20,9 @@
20
try:
21
title = biz.find('a', {'class': 'biz-name'}).text
22
address = biz.find('address').contents
23
- print(address)
+ # print(address)
24
phone = biz.find('span', {'class': 'biz-phone'}).text
25
+ region = soup.find('span', {'class': 'neighborhood-str-list'}).contents
26
count += 1
27
except Exception as e:
28
print(e)
@@ -32,7 +33,8 @@
32
33
phone = None
34
35
detail = f"{title}\n{address}\n{phone}"
- print(detail)
36
+ print(region)
37
+ # print(detail)
38
39
40
textFile.write(str(detail) + '\n\n')
0 commit comments