2012-06-20 20:41:04 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
2013-01-28 17:52:26 +00:00
|
|
|
# Copyright (C) 2012-2013 Bastian Kleineidam
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2012-11-21 20:57:26 +00:00
|
|
|
from re import compile
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
|
|
|
from ..helpers import indirectStarter
|
2012-11-21 20:57:26 +00:00
|
|
|
from ..util import tagre
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class LasLindas(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://laslindas.katbox.net/'
|
|
|
|
stripUrl = latestUrl + 'archive/%s/'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://laslindas\.katbox\.net/wp-content/webcomic/las-lindas/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://laslindas\.katbox\.net/archive/[^"]+)', after="previous"))
|
|
|
|
help = 'Index format: stripname'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Lint(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.purnicellin.com/lint/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + '%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(http://www.purnicellin.com/lint/comics/.+?)"')
|
|
|
|
prevSearch = compile(r'\| <a href="([^"]+)" rel="prev">')
|
|
|
|
help = 'Index format: yyyy/mm/dd/num-name'
|
|
|
|
|
|
|
|
|
|
|
|
class LookingForGroup(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.lfgcomic.com/page/latest'
|
2012-11-13 18:10:19 +00:00
|
|
|
stripUrl = 'http://www.lfgcomic.com/page/%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(http://newcdn.lfgcomic.com/uploads/comics/.+?)"')
|
|
|
|
prevSearch = compile(r'<a href="(/page/\d+)" id="navtop-prev"')
|
|
|
|
starter = indirectStarter('http://www.lfgcomic.com/', compile(r'<a href="(/page/\d+)" id="feature-preview"'))
|
|
|
|
nameSearch = compile(r'/page/(\d+)')
|
|
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
def namer(self, imageUrl, pageUrl):
|
|
|
|
return self.nameSearch.search(pageUrl).group(1)
|
|
|
|
|
|
|
|
|
|
|
|
class LittleGamers(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.little-gamers.com/'
|
2012-11-21 20:57:26 +00:00
|
|
|
stripUrl = latestUrl + '%s/'
|
2012-12-04 06:02:40 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://little-gamers\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.little-gamers.com/[^"]+)', before="comic-nav-prev-link"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: yyyy/mm/dd/name'
|
|
|
|
|
|
|
|
|
|
|
|
class LeastICouldDo(_BasicScraper):
|
2013-01-23 19:01:18 +00:00
|
|
|
latestUrl = 'http://leasticoulddo.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'comic/%s'
|
2013-01-23 19:01:18 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://cdn\.leasticoulddo\.com/wp-content/uploads/\d+/\d+/\d{8}\.\w{1,4})'))
|
2012-06-20 19:58:13 +00:00
|
|
|
prevSearch = compile(r'<a href="(/comic/\d{8})">Previous</a>')
|
|
|
|
help = 'Index format: yyyymmdd'
|