pax_global_header 0000666 0000000 0000000 00000000064 14042356110 0014506 g ustar 00root root 0000000 0000000 52 comment=18d41565f955028f9fcd2f6cc437f5f1cb717401
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-limetorrents/ 0000775 0000000 0000000 00000000000 14042356110 0023526 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-limetorrents/modules/ 0000775 0000000 0000000 00000000000 14042356110 0025176 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-limetorrents/modules/limetorrents/ 0000775 0000000 0000000 00000000000 14042356110 0027725 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-limetorrents/modules/limetorrents/__init__.py 0000664 0000000 0000000 00000001512 14042356110 0032035 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2018 Julien Veyssier
#
# This file is part of a woob module.
#
# This woob 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 woob 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 woob module. If not, see .
from .module import LimetorrentsModule
__all__ = ['LimetorrentsModule']
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-limetorrents/modules/limetorrents/browser.py 0000664 0000000 0000000 00000003213 14042356110 0031761 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2018 Julien Veyssier
#
# This file is part of a woob module.
#
# This woob 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 woob 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 woob module. If not, see .
from woob.browser.exceptions import BrowserHTTPNotFound
from woob.browser import PagesBrowser
from woob.browser.url import URL
from woob.browser.profiles import Wget
from .pages import SearchPage, TorrentPage
__all__ = ['LimetorrentsBrowser']
class LimetorrentsBrowser(PagesBrowser):
PROFILE = Wget()
TIMEOUT = 30
BASEURL = 'https://www.limetorrents.info/'
search = URL(r'/search/all/(?P.*)/seeds/(?P[0-9]+)/', SearchPage)
torrent = URL(r'/(?P.*)-torrent-(?P[0-9]+)\.html', TorrentPage)
def iter_torrents(self, pattern):
return self.search.go(pattern=pattern, page=1).iter_torrents()
def get_torrent(self, id):
try:
self.torrent.go(torrent_id=id, torrent_name='whatever')
torrent = self.page.get_torrent()
return torrent
except BrowserHTTPNotFound:
return
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-limetorrents/modules/limetorrents/favicon.png 0000664 0000000 0000000 00000002403 14042356110 0032057 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq bKGD pHYs tIME8%_ IDATx]lU;,DZ BAIkM&-4
jR$">ȋbSQ^P'$>}PK !F%ԘH)DJ1UTlZV3{}t3tۦl?g=3wf`0`0LSDgiߧ &[S-oU
x\w@0mO[h5>㺞
)vak Ǿ0*/LmQ|/;syDM[(]j0CZGbPI*PFw(wO^
(V ?}/yiq@&T|="x{
P<qTEar7T-m-T A
ytQ*cYYNQE_B%gƜ+ZOP(YB<~L_
.aYZR6`=%tNr_z=
r视S=CWz/,l
ZzĤ/@^׀% 9zt{.pF"N^[=Z=4rkgQ_b9 }Zqw;n9`ZFCVvH0j@b,]Np`D7)wN6nHHaSG̫@w!7'㸀Zs>s D^ Ϣn1o`0܌ognǀntv<x,