Fix AbstruseGoose and QuestionabelContent.
This commit is contained in:
parent
f106966136
commit
f488935072
3 changed files with 5 additions and 3 deletions
|
@ -10,6 +10,8 @@ Features:
|
|||
|
||||
Fixes:
|
||||
- comics: Get larger images from GoComics.
|
||||
- comics: Fix AbstruseGoose and QuestionabelContent.
|
||||
Closes: GH bug #50
|
||||
|
||||
|
||||
Dosage 2.8 (released 8.12.2013)
|
||||
|
|
|
@ -30,12 +30,12 @@ class AbsurdNotions(_BasicScraper):
|
|||
|
||||
|
||||
class AbstruseGoose(_BasicScraper):
|
||||
url = 'http://abstrusegoose.com/'
|
||||
url = 'http://www.abstrusegoose.com/'
|
||||
rurl = escape(url)
|
||||
starter = bounceStarter(url, compile(tagre('a', 'href', r'(%s\d+)' % rurl)+"Next »"))
|
||||
stripUrl = url + '%s'
|
||||
firstStripUrl = stripUrl % '1'
|
||||
imageSearch = compile(tagre('img', 'src', r'(%sstrips/[^<>"]+)' % rurl))
|
||||
imageSearch = compile(tagre('img', 'src', r'(http://abstrusegoose\.com/strips/[^<>"]+)'))
|
||||
prevSearch = compile(tagre('a', 'href', r'(%s\d+)' % rurl) + r'« Previous</a>')
|
||||
help = 'Index format: n (unpadded)'
|
||||
textSearch = compile(tagre("img", "title", r'([^"]+)'))
|
||||
|
|
|
@ -11,7 +11,7 @@ class QuestionableContent(_BasicScraper):
|
|||
url = 'http://www.questionablecontent.net/'
|
||||
stripUrl = url + 'view.php?comic=%s'
|
||||
firstStripUrl = stripUrl % '1'
|
||||
imageSearch = compile(tagre("img", "src", r'([^"]+/comics/[^"]+)', before="strip"))
|
||||
imageSearch = compile(tagre("img", "src", r'([^"]+/comics/[^"]+)'))
|
||||
prevSearch = compile(tagre("a", "href", r'(view\.php\?comic=\d+)') + 'Previous')
|
||||
help = 'Index format: n (unpadded)'
|
||||
|
||||
|
|
Loading…
Reference in a new issue