fix pagination on professional website
This commit is contained in:
parent
578216b55e
commit
4d1ed2a430
1 changed files with 4 additions and 10 deletions
|
|
@ -264,17 +264,11 @@ class TransactionsPage(CDNBasePage):
|
||||||
|
|
||||||
class ProTransactionsPage(TransactionsPage):
|
class ProTransactionsPage(TransactionsPage):
|
||||||
def get_next_args(self, args):
|
def get_next_args(self, args):
|
||||||
txt = self.get_from_js('myPage.setPiedPage(oNavSuivantPrec_1(', ')')
|
if len(self.document.xpath('//a[contains(text(), "Suivant")]')) > 0:
|
||||||
|
args['PageDemandee'] = int(args.get('PageDemandee', 1)) + 1
|
||||||
|
return args
|
||||||
|
|
||||||
if txt is None:
|
return None
|
||||||
return None
|
|
||||||
|
|
||||||
l = txt.split(',')
|
|
||||||
if int(l[4]) <= 40:
|
|
||||||
return None
|
|
||||||
|
|
||||||
args['PageDemandee'] = int(args.get('PageDemandee', 1)) + 1
|
|
||||||
return args
|
|
||||||
|
|
||||||
def parse_transactions(self):
|
def parse_transactions(self):
|
||||||
transactions = {}
|
transactions = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue