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 757e1c7 commit 75c222c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -9,12 +9,12 @@ def scrape_dof(url):

#print html
root = lxml.html.fromstring(html)
print root.find_class("div.notice-search-item")
#print root.find_class("div.notice-search-item")

#line below selects all <div class="notice-search-item">
rows = root.cssselect("div.notice-search-item")
for row in rows:
#print row.find_class("div.notice-search-item")
print row.text_content():
# Set up our data record - we'll need it later
record = {}
a = row.cssselect("a") #grab all <a> tags within our <div>
Expand Down

0 comments on commit 75c222c

Please sign in to comment.