From 344ab189fc785350107a7ae32b10fdb9477537c5 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 25 Jul 2012 21:56:40 +0200 Subject: [PATCH] fix regexp of product name in page --- modules/prixcarburants/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prixcarburants/pages.py b/modules/prixcarburants/pages.py index f8037f2c..55775ff6 100644 --- a/modules/prixcarburants/pages.py +++ b/modules/prixcarburants/pages.py @@ -51,7 +51,7 @@ class ComparisonResultsPage(BasePage): except BrokenPageError: return NotAvailable else: - m = re.match('Carburant : (\w+) | .*', div.text) + m = re.match('Carburant : ([\w\-]+) | .*', div.text) return m.group(1) def iter_results(self, product=None):