Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vicoliveres committed Mar 8, 2018
1 parent cfb68ea commit 871891d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scraper.py
Expand Up @@ -16,6 +16,7 @@
names = restaurant.cssselect("h2")
addresses = restaurant.cssselect("div.address")
postcodes = restaurant.cssselect("div.postcode")
companies = "Wagamama"

for name in names:
record['Name'] = name.text
Expand All @@ -25,8 +26,9 @@

for postcode in postcodes:
record['Postcode'] = postcode.text

record['Company'] = "Wagamama"

for company in companies:
record['Company'] = company

print record, '------------'

Expand Down

0 comments on commit 871891d

Please sign in to comment.