From 9bf7a6fbac5c54bb328a0894ac53ce478cd0ef4f Mon Sep 17 00:00:00 2001 From: yngveny <31400411+yngveny@users.noreply.github.com> Date: Mon, 25 Sep 2017 13:19:49 +0200 Subject: [PATCH] Update scraper.py --- scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper.py b/scraper.py index 16f5ff4..a5d2b0c 100644 --- a/scraper.py +++ b/scraper.py @@ -14,7 +14,7 @@ def scrape_dof(url): #line below selects all
rows = root.cssselect("div.notice-search-item") for row in rows: - print row.text_content() + print(row.text_content()text.encode("utf-8")) # Set up our data record - we'll need it later record = {} a = row.cssselect("a") #grab all tags within our