Add and fix some comics.

This commit is contained in:
Bastian Kleineidam 2013-03-12 20:49:46 +01:00
parent 43f20270d0
commit 7c4ac0df7b
6 changed files with 38 additions and 10 deletions

View file

@ -2,9 +2,14 @@ Dosage 1.14 (released xx.xx.2013)
Features: Features:
- comics: Added KeenSpot comic strips, enable ComicGenesis - comics: Added KeenSpot comic strips, enable ComicGenesis
comic strips, added FullFrontalNerdity, GeeksNextDoor. comic strips, added DerFlix, FonFlatter, FullFrontalNerdity,
GeeksNextDoor, Ruthe.
Closes: GH bug #15 Closes: GH bug #15
Changes:
- comics: The scraper can check a list of previous and image link
regular expressions, not only a single one.
Dosage 1.13 (released 11.3.2013) Dosage 1.13 (released 11.3.2013)

View file

@ -79,6 +79,17 @@ class DeepFried(_BasicScraper):
help = 'Index format: non' help = 'Index format: non'
class DerFlix(_BasicScraper):
url = 'http://derflix.de/'
stripUrl = url + 'index.php?preselect=%s'
firstStripUrl = stripUrl % '1'
lang = 'de'
imageSearch = compile(tagre("img", "src", r'(autocartoons/\d+\.[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(index\.php\?preselect=\d+)') +
tagre("img", "src", r'autocartoons/rahmen_zurueck\.jpg'))
help = 'Index format: number'
class DieselSweeties(_BasicScraper): class DieselSweeties(_BasicScraper):
url = 'http://www.dieselsweeties.com/' url = 'http://www.dieselsweeties.com/'
stripUrl = url + 'archive/%s' stripUrl = url + 'archive/%s'

View file

@ -107,6 +107,16 @@ class Flipside(_BasicScraper):
help = 'Index format: nnnn' help = 'Index format: nnnn'
class FonFlatter(_BasicScraper):
url = 'http://www.fonflatter.de/'
stripUrl = url + '%s/'
firstStripUrl = stripUrl % '2005/09/20/01-begegnung-mit-batman'
lang = 'de'
imageSearch = compile(tagre("img", "src", r'(http://www\.fonflatter\.de/\d+/fred_\d+-\d+-\d+[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(http://www\.fonflatter\.de/[^"]+)', after="prev"))
help = 'Index format: yyyy/mm/dd/number-stripname'
class Footloose(_BasicScraper): class Footloose(_BasicScraper):
url = 'http://footloosecomic.com/footloose/today.php' url = 'http://footloosecomic.com/footloose/today.php'
stripUrl = 'http://footloosecomic.com/footloose/pages.php?page=%s' stripUrl = 'http://footloosecomic.com/footloose/pages.php?page=%s'

View file

@ -52,14 +52,6 @@ class GeeksNextDoor(_BasicScraper):
help = 'Index format: yyyy-mm-dd' help = 'Index format: yyyy-mm-dd'
class GirlGenius(_BasicScraper):
url = 'http://girlgeniusonline.com/comic.php'
stripUrl = url + '?date=%s'
imageSearch = compile(r"(/ggmain/strips/.+?)'")
prevSearch = compile(r"</a> <a href=.+?(/comic.php\?date=.+?)'.+?Previous")
help = 'Index format: yyyymmdd'
class GirlsWithSlingshots(_BasicScraper): class GirlsWithSlingshots(_BasicScraper):
url = 'http://www.girlswithslingshots.com/' url = 'http://www.girlswithslingshots.com/'
stripUrl = url + 'comic/gws-%s/' stripUrl = url + 'comic/gws-%s/'

View file

@ -161,7 +161,7 @@ class Precocious(_BasicScraper):
compile(tagre("a", "href", r'(/archive/comic/[^"]+)') + tagre("img", "src", r"/templates/precocious_main/images/next_arrow\.png")) compile(tagre("a", "href", r'(/archive/comic/[^"]+)') + tagre("img", "src", r"/templates/precocious_main/images/next_arrow\.png"))
) )
stripUrl = url + 'archive/comic/%s' stripUrl = url + 'archive/comic/%s'
imageSearch = compile(tagre("img", "src", r'(/comics/\d+\.jpg)')) imageSearch = compile(tagre("img", "src", r'(/comics/\d+[^"]*\.jpg)'))
prevSearch = compile(tagre("a", "href", r'(/archive/comic/[^"]+)') + tagre("img", "src", r"/templates/precocious_main/images/back_arrow\.png")) prevSearch = compile(tagre("a", "href", r'(/archive/comic/[^"]+)') + tagre("img", "src", r"/templates/precocious_main/images/back_arrow\.png"))
help = 'Index format: yyyy/mm/dd' help = 'Index format: yyyy/mm/dd'

View file

@ -51,3 +51,13 @@ class Roza(_BasicScraper):
imageSearch = compile(r'<img src="(pages/.+?)"') imageSearch = compile(r'<img src="(pages/.+?)"')
prevSearch = compile(r'<a href="(index.php\?date=.+?)">[^>].+?navtable_01.gif') prevSearch = compile(r'<a href="(index.php\?date=.+?)">[^>].+?navtable_01.gif')
help = 'Index format: yyyy-mm-dd' help = 'Index format: yyyy-mm-dd'
class Ruthe(_BasicScraper):
url = 'http://ruthe.de/'
stripUrl = url + 'index.php?pic=%s&sort=datum&order=ASC'
firstStripUrl = stripUrl % '1'
lang = 'de'
imageSearch = compile(tagre("img", "src", r'(cartoons/strip_\d+[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(index\.php\?pic=[^"]+)', before="b_back"))
help = 'Index format: number'