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 ed33a30 commit d8ce555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -23,8 +23,8 @@ def scrape_dof(url):

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

element = row.cssselect("div")
Expand All @@ -39,7 +39,7 @@ def scrape_dof(url):
record['Klient'] = klient
record['Kungj_type'] = kgtype
record['Kungj_dato'] = kgdato
#record['Company'] = company


# Finally, save the record to the datastore - 'Name' is our unique key
scraperwiki.sqlite.save(["Dofref"], record)
Expand Down

0 comments on commit d8ce555

Please sign in to comment.