pax_global_header 0000666 0000000 0000000 00000000064 13400741301 0014503 g ustar 00root root 0000000 0000000 52 comment=309ae667efa3c8f7192ef6b744c295fbb8a2d101
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-xhamster/ 0000775 0000000 0000000 00000000000 13400741301 0023041 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-xhamster/modules/ 0000775 0000000 0000000 00000000000 13400741301 0024511 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-xhamster/modules/xhamster/ 0000775 0000000 0000000 00000000000 13400741301 0026344 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-xhamster/modules/xhamster/__init__.py 0000664 0000000 0000000 00000001515 13400741301 0030457 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2017 Roger Philibert
#
# 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 __future__ import unicode_literals
from .module import XHamsterModule
__all__ = ['XHamsterModule']
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-xhamster/modules/xhamster/browser.py 0000664 0000000 0000000 00000002404 13400741301 0030401 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2017 Roger Philibert
#
# 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 __future__ import unicode_literals
from weboob.browser import PagesBrowser, URL
from .pages import VideoPage, SearchPage
class XHamsterBrowser(PagesBrowser):
BASEURL = 'https://fr.xhamster.com'
video = URL('/videos/(?P.+)', VideoPage)
search = URL('/search\?q=(?P[^&]+)', SearchPage)
def do_search(self, pattern):
self.location('/search', params={'q': pattern})
return self.page.iter_videos()
def get_video(self, _id):
self.video.go(id=_id)
return self.page.get_video()
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-xhamster/modules/xhamster/favicon.png 0000664 0000000 0000000 00000003532 13400741301 0030502 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq bKGD pHYs tIME3_p iTXtComment Created with GIMPd.e IDATx}lSUƟs{R66t[HE#%"_ h[MJBDcbIs|,ɈH&d)Ɛ?td=]7nv&7[{ws;AC
7`Q[MQ !l6ۣ$}U
ؚiQhN alzϝ