Skip to content

Commit

Permalink
Print calls
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinrozzi committed Jan 8, 2018
1 parent 2dd52c2 commit 206cd15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified .vs/slnx.sqlite
Binary file not shown.
5 changes: 4 additions & 1 deletion scraper.py
Expand Up @@ -11,7 +11,10 @@
tree = html.fromstring(page.content)

## Select calls from page by XPath
call = tree.xpath('//div//p/text()')
firecalls = tree.xpath('//div//p/text()')

## Print Scraped Calls
print 'Fire Calls: ', firecalls

## Write out to the sqlite database using scraperwiki library
scraperwiki.sqlite.save(unique_keys=['call'], data=call)

0 comments on commit 206cd15

Please sign in to comment.