From a46798e37506af9f993a54c6dee1e48719c6cbeb Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 27 Oct 2012 13:05:37 +0200 Subject: [PATCH] fix parsing time (closes #866) --- modules/transilien/pages/departures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/transilien/pages/departures.py b/modules/transilien/pages/departures.py index 85df7881..a2c0cb31 100644 --- a/modules/transilien/pages/departures.py +++ b/modules/transilien/pages/departures.py @@ -43,7 +43,7 @@ class DeparturesPage(BasePage): continue code_mission = self.parser.select(tr, 'td[headers=Code_de_mission] a', 1).text.strip() - time_s = self.parser.select(tr, 'td[headers=Heure_de_passage]', 1).text.strip() + time_s = self.parser.select(tr, 'td[headers=Heure_de_passage]', 1).text.strip().rstrip(u'\xa0*') destination = self.parser.select(tr, 'td[headers=Destination]', 1).text.strip() plateform = self.parser.select(tr, 'td[headers=Voie]', 1).text.strip()