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 344d759 commit 105277f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Expand Up @@ -14,7 +14,8 @@ def scrape_dof(url):
#line below selects all <div class="notice-search-item">
rows = root.cssselect("div.notice-search-item")
for row in rows:
print(row.text_content().encode("utf-8"))
#print(row.text_content().encode("utf-8"))
print(row.classes())
# 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 105277f

Please sign in to comment.