pax_global_header 0000666 0000000 0000000 00000000064 13514067645 0014525 g ustar 00root root 0000000 0000000 52 comment=d55ee1b5fb5ebdd456ab724438e5913e5a54d0c9
woob-d55ee1b5fb5ebdd456ab724438e5913e5a54d0c9-modules-larousse/ 0000775 0000000 0000000 00000000000 13514067645 0023142 5 ustar 00root root 0000000 0000000 woob-d55ee1b5fb5ebdd456ab724438e5913e5a54d0c9-modules-larousse/modules/ 0000775 0000000 0000000 00000000000 13514067645 0024612 5 ustar 00root root 0000000 0000000 woob-d55ee1b5fb5ebdd456ab724438e5913e5a54d0c9-modules-larousse/modules/larousse/ 0000775 0000000 0000000 00000000000 13514067645 0026447 5 ustar 00root root 0000000 0000000 woob-d55ee1b5fb5ebdd456ab724438e5913e5a54d0c9-modules-larousse/modules/larousse/__init__.py 0000664 0000000 0000000 00000001513 13514067645 0030560 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2017 Vincent A
#
# 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 LarousseModule
__all__ = ['LarousseModule']
woob-d55ee1b5fb5ebdd456ab724438e5913e5a54d0c9-modules-larousse/modules/larousse/browser.py 0000664 0000000 0000000 00000003077 13514067645 0030513 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2017 Vincent A
#
# 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 import PagesBrowser, URL
from weboob.capabilities.translate import LanguageNotSupported
from .pages import LangList, WordPage
class LarousseBrowser(PagesBrowser):
BASEURL = 'https://www.larousse.fr'
langlist = URL('/dictionnaires/bilingues$', LangList)
word = URL(r'/dictionnaires/(?P\w+)-(?P\w+)/(?P.*)', WordPage)
LANGS = None
def _init(self):
if self.LANGS:
return
self.langlist.go()
self.LANGS = self.page.get_langs()
def translate(self, src, dst, word):
self._init()
try:
nsrc, ndst = self.LANGS[src, dst]
except KeyError:
raise LanguageNotSupported()
self.word.go(src=nsrc, dst=ndst, word=word)
return self.page.iter_translations(src=src, dst=dst)
woob-d55ee1b5fb5ebdd456ab724438e5913e5a54d0c9-modules-larousse/modules/larousse/favicon.png 0000664 0000000 0000000 00000024660 13514067645 0030612 0 ustar 00root root 0000000 0000000 PNG
IHDR >a bKGD pHYs tIMEF
* iTXtComment Created with GIMPd.e IDATx}yp5Mh1H^ T
ɭWaE/;a+ p\ 6` $kn
umYhI{G/oGY3Z_L,;c!E@ 0,0{IR.Ȓz''E0}RO (YMU@EC$PRH X'+MSKPJ9 |zbG"Xg60XQd(1H{d=ອZy`!NNP(Jx1DAYG!
@kmom)|a0 "QGiҏ
0 `^p0XO Ë]_0-[]R4x _0:n/`\<4ԲB~|p8],,e
@cwC?8ɣ@'}$mĊ`xr:wLZEe \Q .2,qx 0jQ߇y
ɶX8*l
J~J)%B ' ux2_-P ݟ<6/n@5
%7~~v)!.
>{,@S )%սdG@R.AɍL>t""UDx !ra*26CxzBc( _
bg7`X"mc#DdM Q4( rв ÜJ!9C9G}ןCX p"BP*P, (e9SS s
:
i#jjΕ