Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yngveny committed Sep 25, 2017
1 parent cdb3fce commit 0b9e8d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.py
Expand Up @@ -20,9 +20,11 @@ def scrape_dof(url):
record = {}
a = row.cssselect("a") #grab all <a> tags within our <div>
title = a[0].text

n = 0
for div in row.cssselect("div"):
print(div.text_content().encode("utf-8"))
print(n)
n = n+1


record['Title'] = title
Expand Down

0 comments on commit 0b9e8d3

Please sign in to comment.