From 1d90c11ad9f534f08d2372cf002b6ef808414014 Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 8 Aug 2012 14:45:50 +0200 Subject: [PATCH] Fix first page parsing (additionnal blank in text) --- modules/ing/pages/account_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ing/pages/account_history.py b/modules/ing/pages/account_history.py index 26b47857..cc0a5ec5 100644 --- a/modules/ing/pages/account_history.py +++ b/modules/ing/pages/account_history.py @@ -48,7 +48,7 @@ class AccountHistory(BasePage): table = self.document.findall('//tbody')[0] for tr in table.xpath('tr'): textdate = tr.find('td[@class="op_date"]').text_content() - textraw = tr.find('td[@class="op_label"]').text_content() + textraw = tr.find('td[@class="op_label"]').text_content().strip() # The id will be rewrite op = Transaction(1) amount = op.clean_amount(tr.find('td[@class="op_amount"]').text_content())