Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlotteMaher committed Jul 17, 2019
1 parent 8a72f31 commit e718545
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scraper.py
Expand Up @@ -16,8 +16,13 @@
for companyname in name:
print companyname.text

#Find info on index
info = root.cssselect('dt')
for companyinfo in info:
print companyinfo.text

#Find another thing on the page using css selectors
address = root.cssselect('dd'[0])
address = root.cssselect('dd')
for companyaddress in address:
print companyaddress.text

Expand Down

0 comments on commit e718545

Please sign in to comment.