pax_global_header 0000666 0000000 0000000 00000000064 13400741301 0014503 g ustar 00root root 0000000 0000000 52 comment=309ae667efa3c8f7192ef6b744c295fbb8a2d101
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-chronopost/ 0000775 0000000 0000000 00000000000 13400741301 0023404 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-chronopost/modules/ 0000775 0000000 0000000 00000000000 13400741301 0025054 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-chronopost/modules/chronopost/ 0000775 0000000 0000000 00000000000 13400741301 0027252 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-chronopost/modules/chronopost/__init__.py 0000664 0000000 0000000 00000001442 13400741301 0031364 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Romain Bignon
#
# This file is part of weboob.
#
# weboob 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.
#
# weboob 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 weboob. If not, see .
from .module import ChronopostModule
__all__ = ['ChronopostModule']
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-chronopost/modules/chronopost/browser.py 0000664 0000000 0000000 00000002557 13400741301 0031320 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Romain Bignon
#
# This file is part of weboob.
#
# weboob 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.
#
# weboob 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 weboob. If not, see .
from weboob.deprecated.browser import Browser
from .pages import IndexPage, TrackPage
__all__ = ['ChronopostBrowser']
class ChronopostBrowser(Browser):
PROTOCOL = 'http'
DOMAIN = 'www.chronopost.fr'
ENCODING = None
PAGES = {
'http://www.chronopost.fr/transport-express/livraison-colis': IndexPage,
'http://www.chronopost.fr/transport-express/livraison-colis/.*accueil/suivi.*': TrackPage,
}
def get_tracking_info(self, _id):
self.home()
assert self.is_on_page(IndexPage)
self.page.track_package(_id)
assert self.is_on_page(TrackPage)
return self.page.get_info(_id)
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-chronopost/modules/chronopost/favicon.png 0000664 0000000 0000000 00000004070 13400741301 0031406 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq IDATxY lUE}
@X0=т@"AVAYھ,"KK4D
uA bQ- 1Ģ@-@~K+nr2ܹwΝfkK.K.K.R5S^F2i@
#U@0^dN|p&SR׀"HgB^dAVmQʄ7':`={#V"cɬ7R .?Z 7ݩJ߁y|(A`Wj ~
"
k4)m,
P#v.`; BӞlO+g9&PdQPQnYlf;4 3
|2 oҶBD`:if|?>fXV4etQVܕ`:`.3M}n9}3ߩrI*kg0n`h
]Y߉L{r ۃ9QΨ`s$Mq0X^x3I\)0钽,`$gW43_GRF"f:_cJNYm]=Cqs MdGUtk(xiNYg)T 9_:wet鈡p+~o Zj,/JrKy%^;lϓ1Xn3̰t`Bt!`g/9dnv%NV>u1bӁ U vJteĠ^DgO#XMxe::#SeØ}K>?$pvB
pX{x=lx)}>o%.BA<{LgatI:03*!*#0>U))>Ra=4DOqt)Vtf0Z]b_Wѳ2ox"?0%WNQm/4qjst(nЁ_ 'Q=?H"YGpHjL}#h$?LfEEJ\3{搰zbEsJmXQa5癍4JK@)R3LI}jm$
h@a֧>uX
]!LX@fDn6/zZ?tǔ0̖Үn6y=Y 4^J!21sHcd`XG˨t^()/V:0 (g:ʮ?O}NM"I-!x17I:-F?̃l,(棈Hwyi$FV:ߟjׄltk~I-Ӟ+ZOAD
1о(k{y4}#aCPZBz&U4̭Io(,;hQTt*+;!1K>ԯ6vHO~m%\p
S*@C
k[ I(3̃Pԙi4F
h]BސQo cȥdI