From 5381b079c06fd2846cf58da0bc2ec37b46a8790d Mon Sep 17 00:00:00 2001 From: Dominic Jones Date: Thu, 30 Oct 2014 14:18:54 +0000 Subject: [PATCH] Update scraper.py --- scraper.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/scraper.py b/scraper.py index 8982946..2730683 100644 --- a/scraper.py +++ b/scraper.py @@ -19,11 +19,13 @@ table_div = soup.find("div",{"id" : "property_table_109"}) if table_div: ks_table = table_div.find("table") - rows = ks_table.findall("tr") - for row in rows: - record={} - table_cells = row.findall("td") - if table_cells: - record['id'] = table_cells[1].string - record['name'] = table_cells[0].string - record['price'] = table_cells[2].find("span").string + print ks_table + + #rows = ks_table.findall("tr") + #for row in rows: + #record={} + #table_cells = row.findall("td") + #if table_cells: + #record['id'] = table_cells[1].string + #record['name'] = table_cells[0].string + #record['price'] = table_cells[2].find("span").string