Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbradshaw committed Feb 18, 2019
1 parent aeb0b97 commit a6942bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scraper.py
Expand Up @@ -19,10 +19,14 @@
print(footers)
for footer in footers:
print(footer)
convertedfooter = lxml.html.tostring(footer)
print(convertedfooter)
#print(footer.text)
'''
print(footer.text_content())
print(lxml.html.tostring(footer))
print(footer.attrib['id'])
'''
#
# # Write out to the sqlite database using scraperwiki library
# scraperwiki.sqlite.save(unique_keys=['name'], data={"name": "susan", "occupation": "software developer"})
Expand Down

0 comments on commit a6942bc

Please sign in to comment.