improve deep search in popolemploi

This commit is contained in:
Bezleputh 2013-08-28 21:23:02 +02:00 committed by Florent
commit a63dcdfa8e
3 changed files with 361 additions and 148 deletions

View file

@ -58,7 +58,6 @@ class AdvertPage(BasePage):
_id = self.parser.select(content, 'ul/li/ul/li/div[@class="value"]/span', 1, method='xpath').text
advert = PopolemploiJobAdvert(_id)
print url
advert.title = u'%s' % self.parser.select(content, 'h4', 1, method='xpath').text.strip()
advert.job_name = u'%s' % self.parser.select(content, 'h4', 1, method='xpath').text.strip()
advert.description = u'%s' % self.parser.select(content, 'p[@itemprop="description"]', 1, method='xpath').text