Skip to content

Commit 164bea6

Browse files
authored
Update zomato_scraper.py
1 parent b3731f4 commit 164bea6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

zomato_dinein_restaurant_scraper/zomato_scraper.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ def zomato(soup):
3434
cuisine = [i.text.strip() for i in soup.find_all('p', class_='sc-1hez2tp-0 sc-hENMEE ffqcCI')]
3535
area = [i.text.strip() for i in soup.find_all('p', class_='sc-1hez2tp-0 sc-dCaJBF jughZz')]
3636
rate = [i.text.strip() for i in soup.find_all('p', class_='sc-1hez2tp-0 sc-hENMEE crfqyB')]
37-
return pd.DataFrame(
38-
{'Name': name,
39-
'Cuisine': cuisine,
40-
'Area': area,
41-
'Rate for Two': rate}
42-
)
37+
return pd.DataFrame({'Name': name, 'Cuisine': cuisine, 'Area': area, 'Rate for Two': rate})
4338

4439

4540
# -- DISPLAYING AND EXPORTING RESULTS --

0 commit comments

Comments
 (0)