[cci] site changes
This commit is contained in:
parent
e8e7e60a50
commit
79db6bbdf0
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ class Child(Filter):
|
|||
class SearchPage(HTMLPage):
|
||||
@method
|
||||
class iter_job_adverts(TableElement):
|
||||
item_xpath = "//tr[(@class='texteCol2TableauClair' or @class='texteCol2TableauFonce')]"
|
||||
item_xpath = '//tr[position() > 1]'
|
||||
head_xpath = "//tr[1]/td[@class='titreCol2Tableau']/text()"
|
||||
|
||||
col_place = u'Région'
|
||||
|
|
@ -70,6 +70,6 @@ class SearchPage(HTMLPage):
|
|||
obj_publication_date = DateTime(CleanText('div/fieldset/p[@class="dateOffre"]'), dayfirst=True)
|
||||
|
||||
def parse(self, el):
|
||||
self.el = el.xpath("//a[@name='%s']/following-sibling::div[1]" % self.obj.id)[0]
|
||||
self.el = el.xpath('//div[@id="%s"]/div' % self.obj.id)[0]
|
||||
self.env['url'] = self.page.url
|
||||
self.env['id'] = self.obj.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue