[adecco] fix site changed
This commit is contained in:
parent
735c4600d9
commit
9cd3192097
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class AdvertPage(BasePage):
|
|||
advert.publication_date = datetime.date(yyyy, mm, dd)
|
||||
|
||||
title = self.parser.select(div, "h1", 1, method='xpath').text_content().strip()
|
||||
town = self.parser.select(div, "h1/span[@class='town']", 1, method='xpath').text_content()
|
||||
town = self.parser.select(div, "h1/span/span[@class='town']", 1, method='xpath').text_content()
|
||||
page_title = self.parser.select(div, "h1/span[@class='pageTitle']", 1, method='xpath').text_content()
|
||||
advert.title = u'%s' % title.replace(town, '').replace(page_title, '')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue