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 871b257 commit 647ceb8Copy full SHA for 647ceb8
writing_clean_data.py
@@ -22,7 +22,7 @@
22
address = biz.find('address').contents
23
# print(address)
24
phone = biz.find('span', {'class': 'biz-phone'}).text
25
- region = soup.find('span', {'class': 'neighborhood-str-list'}).contents
+ region = biz.find('span', {'class': 'neighborhood-str-list'}).contents
26
count += 1
27
except Exception as e:
28
print(e)
@@ -31,9 +31,9 @@
31
logs.close()
32
address = None
33
phone = None
34
+ region = None
35
- detail = f"{title}\n{address}\n{phone}"
36
- print(region)
+ detail = f"{title}\n{address}\n{phone}\n{region}"
37
# print(detail)
38
39
try:
0 commit comments