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 0b9e8d3 commit 04277ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scraper.py
Expand Up @@ -20,15 +20,18 @@ 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


element = row.cssselect("div")
link = element[0].text_content().encode("utf-8")

record['Title'] = title
#record['Link'] = link
record['Link'] = link
#record['Reference'] = ref
#record['Company'] = company

Expand Down

0 comments on commit 04277ea

Please sign in to comment.