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 299fffb commit 765451d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.py
Expand Up @@ -18,13 +18,13 @@ def scrape_dof(url):
title = a[0].text
print(a[0].text.encode("utf-8"))

item_left = row.cssselect("div.left-col")
item_left = row.cssselect("div")
company = item_left[0].text
print(item_left[0].text.encode("utf-8"))

#repeat process for <span class="right-col">
item_right = row.cssselect("div.right-col")
ref = item_right[0].text
#item_right = row.cssselect("div.right-col")
#ref = item_right[0].text
#date = item_right[1].text

#record['URL'] = url
Expand Down

0 comments on commit 765451d

Please sign in to comment.