From b777f9426251edd06e85d7ee9fe3a6d0f4b40e8d Mon Sep 17 00:00:00 2001 From: mrmodiddley Date: Thu, 21 Jan 2016 11:41:56 +0000 Subject: [PATCH] Update scraper.py --- scraper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scraper.py b/scraper.py index a510088..80444df 100644 --- a/scraper.py +++ b/scraper.py @@ -12,7 +12,10 @@ # the line below is us using cssselect on variable root to grab the table cell i.e. 'td' and put in variable 'tds' tds = root.cssselect('td') # -# +#Just as the function fromstring changes it to xml so the lxml library can read it we now need to change it back to something that we cna read +for td in tds: + print lxml.html.tostring(td) + print td.text # # #