pax_global_header 0000666 0000000 0000000 00000000064 14042356110 0014506 g ustar 00root root 0000000 0000000 52 comment=18d41565f955028f9fcd2f6cc437f5f1cb717401
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-lyricsmode/ 0000775 0000000 0000000 00000000000 14042356110 0023151 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-lyricsmode/modules/ 0000775 0000000 0000000 00000000000 14042356110 0024621 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-lyricsmode/modules/lyricsmode/ 0000775 0000000 0000000 00000000000 14042356110 0026773 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-lyricsmode/modules/lyricsmode/__init__.py 0000664 0000000 0000000 00000001507 14042356110 0031107 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 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 LyricsmodeModule
__all__ = ['LyricsmodeModule']
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-lyricsmode/modules/lyricsmode/browser.py 0000664 0000000 0000000 00000003341 14042356110 0031031 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 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 Firefox
from .pages import SearchPage, LyricsPage
__all__ = ['LyricsmodeBrowser']
class LyricsmodeBrowser(PagesBrowser):
PROFILE = Firefox()
TIMEOUT = 30
BASEURL = 'http://www.lyricsmode.com/'
search = URL('search\.php\?search=(?P[^&/]*)$',
SearchPage)
songLyrics = URL('lyrics/(?P[^/]*)/(?P[^/]*)/(?P[^/]*)\.html$',
LyricsPage)
def iter_lyrics(self, criteria, pattern):
return self.search.go(pattern=pattern).iter_lyrics()
def get_lyrics(self, id):
subid = id.split('|')
try:
self.songLyrics.go(letterid=subid[0], artistid=subid[1], songid=subid[2])
songlyrics = self.page.get_lyrics()
return songlyrics
except BrowserHTTPNotFound:
return
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-lyricsmode/modules/lyricsmode/favicon.png 0000664 0000000 0000000 00000004012 14042356110 0031123 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq bKGD pHYs tIME3 IDATx}pT%dCR!!P/J,VJh)U[aU1dCam8ڑHAbBE8 m"a[!(J @M?Icnv?}7os{(T}?K갻ו`~iop('6AvP* 3=L"P mjv씏3T~LG(Fil02Ea{"6gl3$*"6_ef"9#C
)B7crS>^S9&BFD+BNPPaBLu3-`@*,.F*ëBڄO+ L?u?eTit;)
Uv&Pe\1pl&"e 5'Ya* +>.0mSJ?a*!>̈\$_g1gڅvPL..8vdx!;i%C۹VrT\/XdƚzYDl
{DxЀOOQagVqvȦ*!GِE(p`ra RkT
S(4
v@F(^2fd' rWf5[pwr̻ D ;Uy-W;)Kɭ2TJѵaфP6xx'ij0"
+}'R&lÜ
ϰ1#BE ' f3ySy:)гꀩ&=^Y+hNWEpO="x~0%KY|rT葜K2C(T9ТJB!IU~V>YB*q&Uv0S.(^ʨʺjQ7[%/vovaJיimUc^.+*:
2@e=OMaЋ w;Z7-
ٯY%
[@LC#ED*FX'g"Ɩk3W}ۯ;F?[aO50Q-×Ĵ%ϱkA{85-6$w@Ƙ7;,]OʲO91P0
'A| ܄j}4r!{`ؓ{,"lP]Q#z_GHeouӢ]qC$e끰]Fu]f}JXbmGxj3gZ0XR٫nHڔjx=D0oxITwHK@0whu% -:4w5)\Ο;s/C&
Nꎀ-7Zw&q^dC[(