Use lambda function, remove old browser1 code
This commit is contained in:
parent
2ab48d4800
commit
e986d96daa
2 changed files with 2 additions and 6 deletions
|
|
@ -64,8 +64,7 @@ class TitreHistory(HTMLPage):
|
|||
class item(ItemElement):
|
||||
klass = Transaction
|
||||
|
||||
def condition(self):
|
||||
return len(self.el.xpath('td[@class="impaire"]')) > 0
|
||||
condition = lambda self: len(self.el.xpath('td[@class="impaire"]')) > 0
|
||||
|
||||
obj_raw = Transaction.Raw('td[4] | td[3]/a')
|
||||
obj_date = Date(CleanText('td[2]'), dayfirst=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue