paypal: Handle multiple pages
This commit is contained in:
parent
4ed53b5de9
commit
ca4c97b42f
2 changed files with 15 additions and 6 deletions
|
|
@ -76,8 +76,11 @@ class Paypal(BaseBrowser):
|
|||
|
||||
def get_history(self, account):
|
||||
self.history()
|
||||
for transaction in self.page.iter_transactions(account):
|
||||
yield transaction
|
||||
parse = True
|
||||
while parse:
|
||||
for trans in self.page.iter_transactions(account):
|
||||
yield trans
|
||||
parse = self.page.next()
|
||||
|
||||
def history(self):
|
||||
self.location('/en/cgi-bin/webscr?cmd=_history&nav=0.3.0')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue