From ec278503ff58fc2f8a58d59de196ab246895a636 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Wed, 2 Oct 2013 20:37:51 +0200 Subject: [PATCH] [Apec] modification de la liste des annonces --- modules/apec/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apec/pages.py b/modules/apec/pages.py index 1a82fdff..95aa8d89 100644 --- a/modules/apec/pages.py +++ b/modules/apec/pages.py @@ -32,7 +32,7 @@ class SearchPage(BasePage): re_id_title = re.compile('/offres-emploi-cadres/\d*_\d*_\d*_(.*?)_(.*?)_(.*?)_(.*?)_(.*?)_(.*?)_(.*?)_(.*?)_(.*?).html', re.DOTALL) divs = self.document.getroot().xpath("//div[@class='boxContent offre']") + self.document.getroot().xpath("//div[@class='boxContent offre even']") for div in divs: - a = self.parser.select(div, 'div/h3/a', 1, method='xpath') + a = self.parser.select(div, 'div/div/h3/a', 1, method='xpath') _id = u'%s/%s' % (re_id_title.search(a.attrib['href']).group(1), re_id_title.search(a.attrib['href']).group(9)) advert = ApecJobAdvert(_id) advert.title = u'%s' % re_id_title.search(a.attrib['href']).group(9).replace('-', ' ')