Fix VGCats & switch to HTTPS

This commit is contained in:
Tobias Gruetzmacher 2020-09-30 21:37:29 +02:00
parent bb71adbe72
commit 7c2c9c3778

View file

@ -3,11 +3,8 @@
# Copyright (C) 2012-2014 Bastian Kleineidam # Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2020 Tobias Gruetzmacher # Copyright (C) 2015-2020 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring # Copyright (C) 2019-2020 Daniel Ring
from re import compile from ..scraper import _ParserScraper
from ..scraper import _BasicScraper, _ParserScraper
from ..helpers import bounceStarter, indirectStarter from ..helpers import bounceStarter, indirectStarter
from ..util import tagre
class Vexxarr(_ParserScraper): class Vexxarr(_ParserScraper):
@ -25,13 +22,12 @@ class Vexxarr(_ParserScraper):
return '20%s-%s-%s' % (page[4:6], page[0:2], page[2:4]) return '20%s-%s-%s' % (page[4:6], page[0:2], page[2:4])
class VGCats(_BasicScraper): class VGCats(_ParserScraper):
url = 'http://www.vgcats.com/comics/' url = 'https://www.vgcats.com/comics/'
stripUrl = url + '?strip_id=%s' stripUrl = url + '?strip_id=%s'
firstStripUrl = stripUrl % '0' firstStripUrl = stripUrl % '0'
imageSearch = compile(tagre("img", "src", r'(images/\d{6}\.[^"]+)')) imageSearch = '//td/img[contains(@src, "/images/")]'
prevSearch = compile(tagre("a", "href", r'(\?strip_id=\d+)') + prevSearch = '//a[img[contains(@src, "back.")]]'
tagre("img", "src", r"back\.gif"))
help = 'Index format: n (unpadded)' help = 'Index format: n (unpadded)'