From 765451d360f36262405be61fb173e02088ca404f Mon Sep 17 00:00:00 2001 From: yngveny <31400411+yngveny@users.noreply.github.com> Date: Mon, 25 Sep 2017 12:27:32 +0200 Subject: [PATCH] Update scraper.py --- scraper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scraper.py b/scraper.py index 774e5fa..5415817 100644 --- a/scraper.py +++ b/scraper.py @@ -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 - 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