pax_global_header 0000666 0000000 0000000 00000000064 13435444765 0014531 g ustar 00root root 0000000 0000000 52 comment=139760e841ad4875b59fe11e052af1bb56dc06ea
woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/ 0000775 0000000 0000000 00000000000 13435444765 0021676 5 ustar 00root root 0000000 0000000 woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/modules/ 0000775 0000000 0000000 00000000000 13435444765 0023346 5 ustar 00root root 0000000 0000000 woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/modules/cic/ 0000775 0000000 0000000 00000000000 13435444765 0024104 5 ustar 00root root 0000000 0000000 woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/modules/cic/__init__.py 0000664 0000000 0000000 00000001506 13435444765 0026217 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2010-2011 Julien Veyssier
#
# 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 .module import CICModule
__all__ = ['CICModule']
woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/modules/cic/browser.py 0000664 0000000 0000000 00000002642 13435444765 0026145 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2010-2011 Julien Veyssier
#
# 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 .pages import LoginPage
from weboob.browser.browsers import AbstractBrowser
from weboob.browser.profiles import Wget
from weboob.browser.url import URL
__all__ = ['CICBrowser']
class CICBrowser(AbstractBrowser):
PROFILE = Wget()
TIMEOUT = 30
BASEURL = 'https://www.cic.fr'
PARENT = 'creditmutuel'
login = URL('/fr/authentification.html',
'/sb/fr/banques/particuliers/index.html',
'/(?P.*)/fr/$',
'/(?P.*)/fr/banques/accueil.html',
'/(?P.*)/fr/banques/particuliers/index.html',
LoginPage)
woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/modules/cic/favicon.png 0000664 0000000 0000000 00000003156 13435444765 0026244 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq bKGD _ _ _4ƍ pHYs tIMEpv tEXtComment Created with GIMPW IDATx{lSU?]u+kvɺ! &T01Ѩ5?ƨ5
0,"21Fۭtt}{1n]I&{~{:::::::::::::?|.4`Mm%%!>? ro|+LR5*?7Z@S##xCSlr:e&E%& B(|B0Lр!DŽ1wӢiE\BVl.-("sf:' 5viSS0"UV@8p6oM2~ Ÿ(TT6VS ;4RW㼥 ǏF}v.3sI}I۟}[i)`gc^1'g`m}Y
$ Pa̹N]UnW~îi*RY}F @ɩ(>$V9Z5k[\q>;(rýEGzp[XT$'eIJdP!?HaxbU%c0RQagm]elllLSTUEQUdEz441Y$D8g8ߗ4$okB"!aEF\ĹU3XʱsK#_|{"#O}qYgL8r"b8 '?uTcS⬦n&*+ ضɓ 'M.O΄cw4o0h`o[i<c6DcrZVV!TU3ޱTX'_*GVkf1#ɢG''h(jϪ 3Ḧme3&ZhnU eNhr̢4Ϫ=E7 -KO
-U8-LF[ hv44.-v{wOZCM{ܨ,$M{ݱ40D6oXɻ<^yh5Y<{~m˒Lϕk=璄G}mT
rк&2wy[|wtd80]sK\loh8)
-մ]A QLO$N2^Y?iQxh#{`*_@`Fv41<ғg{|եes
# PVTĞ{V) 輅lYryKoߞȪ|GPip`m9iY(H(M懓Q;}~qn?x0ͥeoޤ[@UUE%4ct9ȱEYyom#%Oώ]?{np 67bs?JgF֔Ъf%zxf1]n6TPZXHBQ
Dh)$NsrdWFttttttttttttttttto
Z$gc IENDB` woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/modules/cic/module.py 0000664 0000000 0000000 00000003472 13435444765 0025751 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2010-2011 Julien Veyssier
# Copyright(C) 2012-2013 Romain Bignon
#
# 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 weboob.capabilities.bank import CapBankTransferAddRecipient
from weboob.capabilities.contact import CapContact
from weboob.tools.backend import AbstractModule, BackendConfig
from weboob.tools.value import ValueBackendPassword
from .browser import CICBrowser
__all__ = ['CICModule']
class CICModule(AbstractModule, CapBankTransferAddRecipient, CapContact):
NAME = 'cic'
MAINTAINER = u'Julien Veyssier'
EMAIL = 'julien.veyssier@aiur.fr'
VERSION = '1.5'
DESCRIPTION = u'CIC'
LICENSE = 'AGPLv3+'
CONFIG = BackendConfig(ValueBackendPassword('login', label='Identifiant', masked=False),
ValueBackendPassword('password', label='Mot de passe'))
BROWSER = CICBrowser
PARENT = 'creditmutuel'
def create_default_browser(self):
browser = self.create_browser(self.config['login'].get(), self.config['password'].get(), weboob=self.weboob)
browser.new_accounts.urls.insert(0, "/mabanque/fr/banque/comptes-et-contrats.html")
return browser
woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/modules/cic/pages.py 0000664 0000000 0000000 00000002230 13435444765 0025552 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2010-2012 Julien Veyssier
#
# 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 weboob.browser.pages import HTMLPage
class LoginPage(HTMLPage):
REFRESH_MAX = 10.0
def login(self, login, passwd):
form = self.get_form(xpath='//form[contains(@name, "ident")]')
form['_cm_user'] = login
form['_cm_pwd'] = passwd
form.submit()
@property
def logged(self):
return self.doc.xpath('//div[@id="e_identification_ok"]')
woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-cic/modules/cic/test.py 0000664 0000000 0000000 00000002015 13435444765 0025433 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2010-2011 Julien Veyssier
#
# 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 weboob.tools.test import BackendTest
class CICTest(BackendTest):
MODULE = 'cic'
def test_cic(self):
l = list(self.backend.iter_accounts())
if len(l) > 0:
a = l[0]
list(self.backend.iter_history(a))