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 7d1cb5e commit 61cbaef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -16,7 +16,7 @@

record['Name'] = restaurant.cssselect("h2")
record['Address'] = restaurant.cssselect("div.address")
record['Postcode'] = restaurant.cssselect("div.address//div.postcode")
record['Postcode'] = restaurant.cssselect("div[starts-with(@class, 'address')]//div[starts-with(@class, 'postcode')]")
record['Company'] = "Wagamama"

print record, '------------'
Expand Down

0 comments on commit 61cbaef

Please sign in to comment.