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 9, 2018
1 parent f76b720 commit 967952b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scraper.py
Expand Up @@ -14,14 +14,14 @@
for restaurant in restaurants:
record = {}

# record['Name'] = restaurant.cssselect("h2")
record['Address'] = restaurant.text
# record['Postcode'] = restaurant.cssselect("div[@class='address']//div")
record['Name'] = restaurant.cssselect("h2")
record['Address'] = restaurant.cssselect("div.address")
record['Postcode'] = restaurant.cssselect("div.address div")
record['Company'] = "Wagamama"

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

scraperwiki.sqlite.save(['Address'], record)
scraperwiki.sqlite.save(['Name'], record)

# for restaurant in restaurants:
# record = {}
Expand Down

0 comments on commit 967952b

Please sign in to comment.