2017-05-14 22:54:02 +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
|
2017-05-14 22:54:02 +00:00
|
|
|
# Copyright (C) 2015-2017 Tobias Gruetzmacher
|
|
|
|
|
|
|
|
from __future__ import absolute_import, division, print_function
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2013-04-10 16:19:11 +00:00
|
|
|
from re import compile, escape
|
2019-06-23 21:36:33 +00:00
|
|
|
from ..scraper import _BasicScraper, _ParserScraper
|
2012-11-21 20:57:26 +00:00
|
|
|
from ..util import tagre
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2019-06-23 21:36:33 +00:00
|
|
|
class QuantumVibe(_ParserScraper):
|
|
|
|
url = 'https://www.quantumvibe.com/'
|
|
|
|
stripUrl = url + 'strip?page=%s'
|
|
|
|
firstStripUrl = stripUrl % '1'
|
|
|
|
imageSearch = '//img[contains(@src, "disppageV3?story=qv")]'
|
|
|
|
prevSearch = '//a[./img[contains(@src, "nav/prevstrip")]]'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class QuestionableContent(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.questionablecontent.net/'
|
|
|
|
stripUrl = url + 'view.php?comic=%s'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '1'
|
2013-12-22 07:01:58 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'([^"]+/comics/[^"]+)'))
|
2012-12-07 23:45:18 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(view\.php\?comic=\d+)') + 'Previous')
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n (unpadded)'
|
|
|
|
|
|
|
|
|
|
|
|
class Qwantz(_BasicScraper):
|
2013-04-13 18:58:00 +00:00
|
|
|
baseUrl = 'http://www.qwantz.com/'
|
|
|
|
url = baseUrl + 'index.php'
|
|
|
|
rurl = escape(baseUrl)
|
2013-02-04 20:00:26 +00:00
|
|
|
stripUrl = url + '?comic=%s'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '1'
|
2013-04-11 16:27:43 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl))
|
2013-04-10 16:19:11 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(%sindex\.php\?comic=\d+)' % rurl, before="prev"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n'
|