Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,12 +135,12 @@ if(price!="-"):
|
|
| 135 |
response=ur.request.urlopen('https://foursquare.com/explore?mode=url&near='+city+'&price='+price+'&q=Resturant')
|
| 136 |
else:
|
| 137 |
response=ur.request.urlopen('https://foursquare.com/explore?mode=url&near='+city+'&q=Resturant')
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
for link in soup.find_all('li'):
|
| 145 |
if (y in str(link)):
|
| 146 |
name.append(link.find('div',{"class":"venueName"}))
|
|
|
|
| 135 |
response=ur.request.urlopen('https://foursquare.com/explore?mode=url&near='+city+'&price='+price+'&q=Resturant')
|
| 136 |
else:
|
| 137 |
response=ur.request.urlopen('https://foursquare.com/explore?mode=url&near='+city+'&q=Resturant')
|
| 138 |
+
html=response.read()
|
| 139 |
+
soup=BeautifulSoup(html,'html.parser')
|
| 140 |
+
name=[]
|
| 141 |
+
rate=[]
|
| 142 |
+
add=[]
|
| 143 |
+
y="""<li class="card singleRecommendation hasPhoto"""
|
| 144 |
for link in soup.find_all('li'):
|
| 145 |
if (y in str(link)):
|
| 146 |
name.append(link.find('div',{"class":"venueName"}))
|