pax_global_header 0000666 0000000 0000000 00000000064 13436457030 0014517 g ustar 00root root 0000000 0000000 52 comment=3863a14eedf17551743a8bbccf0237874d7f4a16
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-cpasbien/ 0000775 0000000 0000000 00000000000 13436457030 0022642 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-cpasbien/modules/ 0000775 0000000 0000000 00000000000 13436457030 0024312 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-cpasbien/modules/cpasbien/ 0000775 0000000 0000000 00000000000 13436457030 0026076 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-cpasbien/modules/cpasbien/__init__.py 0000664 0000000 0000000 00000000101 13436457030 0030177 0 ustar 00root root 0000000 0000000 from .module import CpasbienModule
__all__ = ['CpasbienModule']
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-cpasbien/modules/cpasbien/browser.py 0000664 0000000 0000000 00000003210 13436457030 0030127 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 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.exceptions import BrowserHTTPNotFound
from weboob.browser import PagesBrowser
from weboob.browser.url import URL
from weboob.browser.profiles import Firefox
from .pages import SearchPage, TorrentPage#, HomePage
__all__ = ['CpasbienBrowser']
class CpasbienBrowser(PagesBrowser):
PROFILE = Firefox()
TIMEOUT = 30
BASEURL = 'http://www.cpasbien.cm/'
search = URL('recherche/(?P.*).html,trie-seeds-d',
SearchPage)
torrent = URL('dl-torrent/(?P.*)\.html',
TorrentPage)
def iter_torrents(self, pattern):
self.search.go(pattern=pattern)
return self.page.iter_torrents()
def get_torrent(self, fullid):
try:
self.torrent.go(id=fullid)
torrent = self.page.get_torrent()
return torrent
except BrowserHTTPNotFound:
return
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-cpasbien/modules/cpasbien/favicon.png 0000664 0000000 0000000 00000005573 13436457030 0030243 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq bKGD pHYs tIME
3Q}( IDATx{\U?,v[`{KbXD^ix$1ڂ? H4!AR"5)T^WKJRG@{,m91{f:ٝ{}.̭5] }Bl4;f?l
mی=&>1֪1Zޏ~RLXڛH>s4d>R(lhIޘ hoX3@h,#B`6|x#
H\q G7}9=BFf "OUv|cr>졀Oȱ~BIP˹iO DZ.Qo,1F2>PV* oGx7a|T$ xCL:::j8pH:oq<4ms
SOv3@