140 lines
5.2 KiB
Python
140 lines
5.2 KiB
Python
from re import compile
|
|
|
|
from ..helpers import _BasicScraper, indirectStarter
|
|
|
|
|
|
class Galaxion(_BasicScraper):
|
|
latestUrl = 'http://galaxioncomics.com/'
|
|
imageUrl = 'http://galaxioncomics.com/?p=%s'
|
|
imageSearch = compile(r'(wordpress/comics/.+?)"')
|
|
prevSearch = compile(r'\| <a href="http://galaxioncomics.com/(\?p=.+?)".+?vious.gif')
|
|
help = 'Index format: non'
|
|
|
|
|
|
class Garanos(_BasicScraper):
|
|
latestUrl = 'http://www.garanos.com/'
|
|
imageUrl = 'http://www.garanos.com/pages/page-%s'
|
|
imageSearch = compile(r'<img src=.+?(/pages/.+?)"')
|
|
prevSearch = compile(r'<a href="(http://www.garanos.com/pages/page-.../)">◄ Previous<')
|
|
help = 'Index format: n (unpadded)'
|
|
|
|
|
|
class GUComics(_BasicScraper):
|
|
latestUrl = 'http://www.gucomics.com/comic/'
|
|
imageUrl = 'http://www.gucomics.com/comic/?cdate=%s'
|
|
imageSearch = compile(r'<IMG src="(/comics/\d{4}/gu_.*?)"')
|
|
prevSearch = compile(r'<A href="(/comic/\?cdate=\d+)"><IMG src="/images/cnav_prev')
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
|
|
|
class GenrezvousPoint(_BasicScraper):
|
|
latestUrl = 'http://genrezvouspoint.com/'
|
|
imageUrl = 'http://genrezvouspoint.com/index.php?comicID=%s'
|
|
imageSearch = compile(r'<img src=\'(comics/.+?)\'')
|
|
prevSearch = compile(r' <a[^>]+?href="(.+?)">PREVIOUS</a>')
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
class GirlGenius(_BasicScraper):
|
|
latestUrl = 'http://girlgeniusonline.com/comic.php'
|
|
imageUrl = 'http://www.girlgeniusonline.com/comic.php\?date=%s'
|
|
imageSearch = compile(r"(/ggmain/strips/.+?)'")
|
|
prevSearch = compile(r"</a> <a href=.+?(/comic.php\?date=.+?)'.+?Previous")
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
|
|
|
class GirlsWithSlingshots(_BasicScraper):
|
|
latestUrl = 'http://www.daniellecorsetto.com/gws.html'
|
|
imageUrl = 'http://www.daniellecorsetto.com/GWS%s.html'
|
|
imageSearch = compile(r'<img src="(images/gws/GWS\d{3}.jpg)"')
|
|
prevSearch = compile(r'(archive.php\?today=\d{3}&comic=\d{3})"[^>]*><img[^>]+src="images/gwsmenu/back_off.jpg"')
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
class Girly(_BasicScraper):
|
|
latestUrl = 'http://girlyyy.com/'
|
|
imageUrl = 'http://girlyyy.com/go/%s'
|
|
imageSearch = compile(r'<img src="(http://girlyyy.com/comics/.+?)"')
|
|
prevSearch = compile(r'<a href="(.+?)"> < prev')
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
class Goats(_BasicScraper):
|
|
latestUrl = 'http://www.goats.com/'
|
|
imageUrl = 'http://www.goats.com/archive/%s.html'
|
|
imageSearch = compile(r'<img.+?src="(/comix/.+?)"')
|
|
prevSearch = compile(r'<a href="(/archive/\d{6}.html)" class="button" title="go back">')
|
|
help = 'Index format: yymmdd'
|
|
|
|
|
|
|
|
class GoneWithTheBlastwave(_BasicScraper):
|
|
starter = indirectStarter('http://www.blastwave-comic.com/index.php?p=comic&nro=1',
|
|
compile(r'href="(index.php\?p=comic&nro=\d+)"><img src="images/page/default/latest'))
|
|
imageUrl = 'http://www.blastwave-comic.com/index.php?p=comic&nro=%s'
|
|
imageSearch = compile(r'<img.+src=".+(/comics/.+?)"')
|
|
prevSearch = compile(r'href="(index.php\?p=comic&nro=\d+)"><img src="images/page/default/previous')
|
|
help = 'Index format: n'
|
|
|
|
@classmethod
|
|
def namer(cls, imageUrl, pageUrl):
|
|
return '%02d' % int(compile(r'nro=(\d+)').search(pageUrl).group(1))
|
|
|
|
|
|
|
|
class GunnerkrigCourt(_BasicScraper):
|
|
latestUrl = 'http://www.gunnerkrigg.com/index2.php'
|
|
imageUrl = 'http://www.gunnerkrigg.com/archive_page.php\?comicID=%s'
|
|
imageSearch = compile(r'<img src="(.+?//comics/.+?)"')
|
|
prevSearch = compile(r'<.+?(/archive_page.php\?comicID=.+?)".+?prev')
|
|
help = 'Index format: n'
|
|
|
|
|
|
|
|
class Gunshow(_BasicScraper):
|
|
latestUrl = 'http://gunshowcomic.com/'
|
|
imageUrl = 'http://gunshowcomic.com/d/%s.html'
|
|
imageSearch = compile(r'src="(/comics/.+?)"')
|
|
prevSearch = compile(r'(/d/\d+\.html)"><img[^>]+?src="/images/previous_day')
|
|
help = 'Index format: yyyy/mm/dd'
|
|
|
|
|
|
|
|
class GleefulNihilism(_BasicScraper):
|
|
latestUrl = 'http://gleefulnihilism.com/'
|
|
imageUrl = 'http://gleefulnihilism.com/comics/2009/12/01/just-one-of-the-perks/%s'
|
|
imageSearch = compile(r'<img src="(http://gleefulnihilism.com/comics/.+?)"')
|
|
prevSearch = compile(r'<a href="(.+?)"[^>]+?>Previous</a>')
|
|
help = 'Index format: yyyy/mm/dd/strip-name'
|
|
|
|
|
|
|
|
class GastroPhobia(_BasicScraper):
|
|
latestUrl = 'http://www.gastrophobia.com/'
|
|
imageUrl = 'http://www.gastrophobia.com/index.php?date=%s'
|
|
imageSearch = compile(r'<img src="(http://gastrophobia.com/comix/[^"]+)"[^>]*>(?!<br>)')
|
|
prevSearch = compile(r'<a href="(.+?)"><img src="pix/prev.gif" ')
|
|
help = 'Index format: yyyy-mm-dd'
|
|
|
|
|
|
|
|
class Geeks(_BasicScraper):
|
|
latestUrl = 'http://sevenfloorsdown.com/geeks/'
|
|
imageUrl = 'http://sevenfloorsdown.com/geeks/archives/%s'
|
|
imageSearch = compile(r'<img src=\'(http://sevenfloorsdown.com/geeks/comics/.+?)\'')
|
|
prevSearch = compile(r'<a href="(.+?)">« Previous')
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
class GlassHalfEmpty(_BasicScraper):
|
|
latestUrl = 'http://www.defectivity.com/ghe/index.php'
|
|
imageUrl = 'http://www.defectivity.com/ghe/index.php?strip_id=%s'
|
|
imageSearch = compile(r'src="(comics/.+?)"')
|
|
prevSearch = compile(r'</a><a href="(.+?)"><img src="\.\./images/onback\.jpg"')
|
|
help = 'Index format: nnn'
|