pax_global_header 0000666 0000000 0000000 00000000064 13400741301 0014503 g ustar 00root root 0000000 0000000 52 comment=309ae667efa3c8f7192ef6b744c295fbb8a2d101
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-bandcamp/ 0000775 0000000 0000000 00000000000 13400741301 0022753 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-bandcamp/modules/ 0000775 0000000 0000000 00000000000 13400741301 0024423 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-bandcamp/modules/bandcamp/ 0000775 0000000 0000000 00000000000 13400741301 0026170 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-bandcamp/modules/bandcamp/__init__.py 0000664 0000000 0000000 00000001507 13400741301 0030304 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2017 Vincent A
#
# 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 BandcampModule
__all__ = ['BandcampModule']
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-bandcamp/modules/bandcamp/browser.py 0000664 0000000 0000000 00000004444 13400741301 0030233 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2017 Vincent A
#
# 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 ReleasesPage, SearchPage, AlbumsPage, AlbumPage, TrackPage
class BandcampBrowser(PagesBrowser):
BASEURL = 'https://bandcamp.com'
search = URL(r'/search\?(?:page=\d+&)?q=(?P.*)',
SearchPage)
releases = URL(r'https://(?P[^.]+).bandcamp.com/releases', ReleasesPage)
albums = URL(r'https://(?P[^.]+).bandcamp.com/music', AlbumsPage)
album = URL(r'https://(?P[^.]+).bandcamp.com/album/(?P[^/]+)', AlbumPage)
track = URL(r'https://(?P[^.]+).bandcamp.com/track/(?P