2016-04-01 22:14:31 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-10-28 22:21:41 +00:00
|
|
|
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
2014-01-05 15:50:57 +00:00
|
|
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
2016-04-01 22:14:31 +00:00
|
|
|
# Copyright (C) 2015-2016 Tobias Gruetzmacher
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2016-04-01 22:14:31 +00:00
|
|
|
from __future__ import absolute_import, division, print_function
|
2016-04-10 21:04:34 +00:00
|
|
|
|
2013-04-10 16:19:11 +00:00
|
|
|
from re import compile, escape
|
2016-04-10 21:04:34 +00:00
|
|
|
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
2012-11-20 17:53:53 +00:00
|
|
|
from ..util import tagre
|
2016-04-10 21:04:34 +00:00
|
|
|
from .common import _WordPressScraper, xpath_class
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2013-03-06 19:00:30 +00:00
|
|
|
class IAmArg(_BasicScraper):
|
|
|
|
url = 'http://iamarg.com/'
|
2013-04-10 16:19:11 +00:00
|
|
|
rurl = escape(url)
|
2013-03-06 19:00:30 +00:00
|
|
|
stripUrl = url + '%s/'
|
|
|
|
firstStripUrl = stripUrl % '2011/05/08/05082011'
|
2015-04-15 18:43:06 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(//iamarg.com/comics/\d+-\d+-\d+[^"]+)'))
|
2013-04-10 16:19:11 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+)' % rurl, after="prev"))
|
2013-03-06 19:00:30 +00:00
|
|
|
help = 'Index format: yyyy/mm/dd/stripname'
|
|
|
|
|
|
|
|
|
2013-07-04 10:22:20 +00:00
|
|
|
class ICanBarelyDraw(_BasicScraper):
|
|
|
|
url = 'http://www.icanbarelydraw.com/comic/'
|
|
|
|
rurl = escape(url)
|
|
|
|
stripUrl = url + '%s'
|
|
|
|
firstStripUrl = stripUrl % '39'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+-[^"]+)' % rurl))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(%s\d+)' % rurl))
|
|
|
|
help = 'Index format: number'
|
|
|
|
|
|
|
|
|
2016-04-01 22:14:31 +00:00
|
|
|
class IDreamOfAJeanieBottle(_WordPressScraper):
|
|
|
|
url = 'http://jeaniebottle.com/'
|
|
|
|
|
|
|
|
|
2016-04-10 21:04:34 +00:00
|
|
|
class InternetWebcomic(_WordPressScraper):
|
2013-12-10 18:50:21 +00:00
|
|
|
url = 'http://www.internet-webcomic.com/'
|
|
|
|
stripUrl = url + '?p=%s'
|
|
|
|
firstStripUrl = stripUrl % '30'
|
2016-04-10 21:04:34 +00:00
|
|
|
prevSearch = '//a[%s]' % xpath_class('navi-prev')
|
2013-12-10 18:50:21 +00:00
|
|
|
help = 'Index format: n'
|
|
|
|
|
|
|
|
|
2013-03-06 19:21:10 +00:00
|
|
|
class IrregularWebcomic(_BasicScraper):
|
|
|
|
url = 'http://www.irregularwebcomic.net/'
|
|
|
|
stripUrl = url + '%s.html'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '1'
|
2013-03-06 19:21:10 +00:00
|
|
|
imageSearch = compile(r'<img .*src="(.*comics/.*(png|jpg|gif))".*>')
|
|
|
|
prevSearch = compile(r'<a href="(/\d+\.html|/cgi-bin/comic\.pl\?comic=\d+)">Previous ')
|
|
|
|
help = 'Index format: nnn'
|
2016-04-01 22:14:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ItsWalky(_WordPressScraper):
|
|
|
|
url = 'http://www.itswalky.com/'
|