pax_global_header 0000666 0000000 0000000 00000000064 13436457030 0014517 g ustar 00root root 0000000 0000000 52 comment=3863a14eedf17551743a8bbccf0237874d7f4a16
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-nef/ 0000775 0000000 0000000 00000000000 13436457030 0021626 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-nef/modules/ 0000775 0000000 0000000 00000000000 13436457030 0023276 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-nef/modules/nef/ 0000775 0000000 0000000 00000000000 13436457030 0024046 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-nef/modules/nef/__init__.py 0000664 0000000 0000000 00000001556 13436457030 0026166 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2019 Damien Cassou
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see .
from __future__ import unicode_literals
from .module import NefModule
__all__ = ['NefModule']
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-nef/modules/nef/browser.py 0000664 0000000 0000000 00000004720 13436457030 0026106 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2019 Damien Cassou
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see .
from __future__ import unicode_literals
import datetime
from weboob.browser import LoginBrowser, URL, need_login
from weboob.exceptions import BrowserIncorrectPassword
from .pages import LoginPage, HomePage, AccountsPage, RecipientsPage, TransactionsPage
def next_week_string():
return (datetime.date.today() + datetime.timedelta(weeks=1)).strftime("%Y-%m-%d")
class NefBrowser(LoginBrowser):
BASEURL = 'https://espace-client.lanef.com'
home = URL('/templates/home.cfm', HomePage)
main = URL('/templates/main.cfm', HomePage)
download = URL(r'/templates/account/accountActivityListDownload.cfm\?viewMode=CSV&orderBy=TRANSACTION_DATE_DESCENDING&page=1&startDate=2016-01-01&endDate=%s&showBalance=true&AccNum=(?P.*)' % next_week_string(), TransactionsPage)
login = URL('/templates/logon/logon.cfm', LoginPage)
def do_login(self):
self.login.stay_or_go()
self.page.login(self.username, self.password)
if not self.home.is_here():
raise BrowserIncorrectPassword('Error logging in')
@need_login
def iter_accounts_list(self):
response = self.main.open(data={
'templateName': 'account/accountList.cfm'
})
page = AccountsPage(self, response)
return page.get_items()
@need_login
def iter_transactions_list(self, account):
return self.download.go(account_id=account.id).iter_history()
# CapBankTransfer
@need_login
def iter_recipients_list(self):
response = self.main.open(data={
'templateName': 'beneficiary/beneficiaryList.cfm',
'LISTTYPE': 'HISTORY'
})
page = RecipientsPage(self, response)
return page.get_items()
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-nef/modules/nef/favicon.png 0000664 0000000 0000000 00000004605 13436457030 0026206 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq sBIT|d pHYs {Rk tEXtSoftware www.inkscape.org< IDATx[klΝٵyGR^Ul16PjXlJ iJS"UHR"mhKhZp
y`ص.NhP 읹?vf}yg;KEIw}{
c]oڵJ_ȣM 3p0myoH,١BQA*P(zg&mp`ƖBiB&gT/д 3-X{Fr͑:!yDX-Z
oCþ*
3soK__rBD0WJ%p;I6Q'_R`v`v,#N*Jr[-|QUbw2@
ۋzd]͕
"^d\֊bm#GWTj$àUfN:DDf)J9x_NT D|f -<9)j27d[$c
K0 e{:ge2^@ 8|-J^+O{(R[|%<, h: i ͐
JwwyMvDrz|jM#s ==.r
En/ᯱXǦQ/w0C3i[Rhý_7#,ZsT` _ gnT0c3JP6QCHI5^ dwH q<