def get_movements_file(self, account_index, start_date, end_date, ordem=True, format='tsv'): self.get_page( *urls.account_statement( account_index=account_index, ordem=ordem, start_date=start_date, end_date=end_date)) html= self.get_page( *urls.get_movements_file( ordem=ordem, start_date=start_date, end_date=end_date, format=format), detect_version=False) return html
def get_ordem_accounts(self): html= self.get_page( *urls.account_statement( ordem= True) ) return parsing.get_accounts(html)
def get_prazo_accounts(self): html= self.get_page( *urls.account_statement( ordem=False) ) return parsing.get_accounts(html)
def _check_is_authenticated(self): try: html = self.get_page(*urls.account_statement()) return True except (UnauthenticatedException, RedirectedException): return False