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 75a44d6 commit 482c4c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.py
Expand Up @@ -17,8 +17,9 @@ def scrape_dof(url):
a = row.cssselect("a") #grab all <a> tags within our <div>
title = a[0].text
print(a[0].text.encode("utf-8"))
print(a[1].text.encode("utf-8"))
#company = a[1].text
if(a[1])
print(a[1].text.encode("utf-8"))
company = a[1].text

#repeat process for <span class="right-col">
item_right = row.cssselect("div.right-col")
Expand Down

0 comments on commit 482c4c1

Please sign in to comment.