diff --git a/doc/changelog.txt b/doc/changelog.txt index 16107de05..8639e1423 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,7 +1,7 @@ Dosage 2.2 (released xx.xx.2013) Features: -- comic: Added ARedTailsDream, Carciphona, Curtailed. +- comic: Added ARedTailsDream, Carciphona, Curtailed, GirlGenius. Patch by Dirk Reiners Changes: diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index 4a003074f..865af5bc2 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -83,6 +83,19 @@ class _GeneralProtectionFault(_BasicScraper): return imageName[:11] + imageName[-4:] +class GirlGenius(_BasicScraper): + description = u'Adventure, Romance, Mad Science!' + baseUrl = 'http://www.girlgeniusonline.com/' + rurl = escape(baseUrl) + url = baseUrl + 'comic.php' + stripUrl = url + 'comic.php?date=%s' + firstStripUrl = stripUrl % '20021104' + imageSearch = compile(tagre("img", "src", r"(%sggmain/strips/[^']*)" % rurl, quote="'")) + prevSearch = compile(tagre("a", "href", r"(%s[^']+)" % rurl, quote="'") + + tagre("img", "alt", "The Previous Comic", quote="'")) + help = 'Index format: yyyymmdd' + + class GirlsWithSlingshots(_BasicScraper): url = 'http://www.girlswithslingshots.com/' rurl = escape(url)