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 63f5f95 commit 7f19195Copy full SHA for 7f19195
extract_details.py
@@ -18,8 +18,10 @@
18
businesses = soup.findAll('div', {'class': 'biz-listing-large'})
19
20
count = 0
21
-for info in businesses:
22
- print(info.text)
23
- count += 1
24
-
25
-print(count)
+for biz in businesses:
+ title = biz.find('a', {'class': 'biz-name'}).text
+ print(title)
+ address = biz.find('address').text
+ print(address)
26
+ phone = biz.find('span', {'class': 'biz-phone'}).text
27
+ print(phone)
0 commit comments