pax_global_header 0000666 0000000 0000000 00000000064 13436457030 0014517 g ustar 00root root 0000000 0000000 52 comment=3863a14eedf17551743a8bbccf0237874d7f4a16
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-vine/ 0000775 0000000 0000000 00000000000 13436457030 0022017 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-vine/modules/ 0000775 0000000 0000000 00000000000 13436457030 0023467 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-vine/modules/vine/ 0000775 0000000 0000000 00000000000 13436457030 0024430 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-vine/modules/vine/__init__.py 0000664 0000000 0000000 00000001501 13436457030 0026536 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2015 P4ncake
#
# 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 VineModule
__all__ = ['VineModule']
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-vine/modules/vine/browser.py 0000664 0000000 0000000 00000002462 13436457030 0026471 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2015 P4ncake
#
# 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.tools.compat import quote_plus
from .pages import SearchPage, PostPage
class VineBrowser(PagesBrowser):
BASEURL = 'https://vine.co'
search_page = URL(r'/api/posts/search/(?P.*)',SearchPage)
post_page = URL('r/api/timelines/posts/s/(?P<_id>.*)', PostPage)
def search_videos(self, pattern):
return self.search_page.go(pattern=quote_plus(pattern.encode('utf-8'))).iter_videos()
def get_video(self, _id):
return self.post_page.go(_id=_id).get_video()
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-vine/modules/vine/favicon.png 0000664 0000000 0000000 00000006650 13436457030 0026572 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq tEXtSoftware Adobe ImageReadyqe<