from re import compile, MULTILINE from ..helpers import _BasicScraper, regexNamer, bounceStarter, indirectStarter class ALessonIsLearned(_BasicScraper): latestUrl = 'http://www.alessonislearned.com/' imageUrl = 'http://www.alessonislearned.com/lesson%s.html' imageSearch = compile(r'back') help = 'Index format: n (unpadded)' class AbleAndBaker(_BasicScraper): latestUrl = 'http://www.jimburgessdesign.com/comics/index.php' imageUrl = 'http://www.jimburgessdesign.com/comics/index.php?comic=%s' imageSearch = compile(r']+src="(comics/\d+\.\w+)"') prevSearch = compile(r']+id="comic_menu_prev"') help = 'Index format: n (unpadded)' class AbsurdNotions(_BasicScraper): latestUrl = 'http://www.absurdnotions.org/page129.html' imageUrl = 'http://www.absurdnotions.org/page%s.html' imageSearch = compile(r'Next »')) imageUrl = 'http://abstrusegoose.com/c%s.html' imageSearch = compile(r'"]+)"') prevSearch = compile(r'« Previous') help = 'Index format: n (unpadded)' @classmethod def namer(cls, imageUrl, pageUrl): index = int(pageUrl.rstrip('/').split('/')[-1]) name = imageUrl.split('/')[-1].split('.')[0] return 'c%03d-%s' % (index, name) class AcademyVale(_BasicScraper): latestUrl = 'http://imagerie.com/vale/' imageUrl = 'http://imagerie.com/vale/avarch.cgi?%s' imageSearch = compile(r']+>(
\n|\n|
\n)
 
', MULTILINE) prevSearch = compile(r'PREVIOUS PAGE') help = 'Index format: n (unpadded)' starter = indirectStarter( 'http://www.anarchycomic.com/page1.php', compile(r'LATEST')) class Altermeta(_BasicScraper): latestUrl = 'http://altermeta.net/' imageUrl = 'http://altermeta.net/archive.php?comic=%s&view=showfiller' imageSearch = compile(r'') prevSearch = compile(r'Back') class Angels2200(_BasicScraper): latestUrl = 'http://www.janahoffmann.com/angels/' imageSearch = compile(r"") prevSearch = compile(r'« Previous') class AppleGeeks(_BasicScraper): latestUrl = 'http://www.applegeeks.com/' imageUrl = 'http://www.applegeeks.com/comics/viewcomic.php?issue=%s' imageSearch = compile(r'Previous Comic\s*

', MULTILINE) help = 'Index format: n (unpadded)' class AppleGeeksLite(_BasicScraper): latestUrl = 'http://www.applegeeks.com/lite/' imageUrl = 'http://applegeeks.com/lite/index.php?aglitecomic=%s' imageSearch = compile(r'>')) imageUrl = 'http://antwrp.gsfc.nasa.gov/apod/ap%s.html' imageSearch = compile(r'') prevSearch = compile(r'<') help = 'Index format: yymmdd' @classmethod def namer(cls, imageUrl, pageUrl): return '%s-%s' % (pageUrl.split('/')[-1].split('.')[0][2:], imageUrl.split('/')[-1].split('.')[0]) class AfterStrife(_BasicScraper): latestUrl = 'http://afterstrife.com/?p=262' imageUrl = 'http://afterstrife.com/?p=%s' imageSearch = compile(r'(◄ Previous|)') help = 'Index format: yyyy/mm/strip-name' class ASkeweredParadise(_BasicScraper): latestUrl = 'http://aspcomics.net/' imageUrl = 'http://aspcomics.net/archindex.php?strip_id=%s' imageSearch = compile(r'Next\]')) imageUrl = 'http://www.agirlandherfed.com/comic/?%s' imageSearch = compile(r'Previous\]') help = 'Index format: nnn' @classmethod def namer(cls, imageUrl, pageUrl): return pageUrl.split('?')[-1] class AetheriaEpics(_BasicScraper): latestUrl = 'http://aetheria-epics.schala.net/' imageUrl = 'http://aetheria-epics.schala.net/%s.html' imageSearch = compile(r'') help = 'Index format: nnn' class Adrift(_BasicScraper): latestUrl = 'http://www.adriftcomic.com/' imageUrl = 'http://www.adriftcomic.com/page%s.html' imageSearch = compile(r'') prevSearch = compile(r'« Previous') help = 'Index format: nnn' class AlienShores(_BasicScraper): latestUrl = 'http://alienshores.com/alienshores_band/' imageUrl = 'http://alienshores.com/alienshores_band/?p=%s' imageSearch = compile(r'>') help = 'Index format: nnn' class AllKindsOfBees(_BasicScraper): latestUrl = 'http://www.allkindsofbees.com/' imageUrl = 'http://www.allkindsofbees.com/?p=%s' imageSearch = compile(r'') help = 'Index format: nnn' class AllTheGrowingThings(_BasicScraper): latestUrl = 'http://typodmary.com/growingthings/' imageUrl = 'http://typodmary.com/growingthings/%s/' imageSearch = compile(r'Previous') help = 'Index format: yyyy-mm-dd' class ArcticBlast(_BasicScraper): latestUrl = 'http://www.arcticblastcomic.com/' imageUrl = 'http://www.arcticblastcomic.com/?p=%s' imageSearch = compile(r'') prevSearch = compile(r'« Previous') help = 'Index format: yyyy/mm/dd/strip-name' class AlsoBagels(_BasicScraper): latestUrl = 'http://www.alsobagels.com/' imageUrl = 'http://alsobagels.com/index.php/comic/%s/' imageSearch = compile(r'') help = 'Index format: strip-name' class Annyseed(_BasicScraper): latestUrl = 'http://www.colourofivy.com/annyseed_webcomic_latest.htm' imageUrl = 'http://www.colourofivy.com/annyseed_webcomic%s.htm' imageSearch = compile(r'