2015-05-15 12:15:32 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-04-01 22:14:31 +00:00
|
|
|
from ..helpers import indirectStarter
|
|
|
|
from ..scraper import make_scraper
|
|
|
|
from .common import _WordPressScraper
|
2015-05-15 12:15:32 +00:00
|
|
|
|
2015-05-20 11:56:49 +00:00
|
|
|
|
2016-04-12 21:11:39 +00:00
|
|
|
def add(name, start):
|
2015-05-20 11:56:49 +00:00
|
|
|
attrs = dict(
|
|
|
|
name=name,
|
2016-04-12 21:11:39 +00:00
|
|
|
url='http://hijinksensue.com/',
|
|
|
|
latestSearch=start,
|
2016-04-13 18:01:51 +00:00
|
|
|
starter=indirectStarter
|
2015-05-20 11:56:49 +00:00
|
|
|
)
|
2016-04-01 22:14:31 +00:00
|
|
|
globals()[name] = make_scraper(name, _WordPressScraper, **attrs)
|
2015-05-26 10:06:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
# all comics on HijiNKS ENSUE
|
|
|
|
for (name, starterXPath) in [
|
|
|
|
('HijinksEnsue', '//h4[text()="Read The Latest HijiNKS ENSUE"]/..//a'),
|
|
|
|
('HijinksEnsueClassic', '//h4[text()="Read HijiNKS ENSUE Classic"]/..//a[3]'),
|
|
|
|
('Faneurysm', '//h4[text()="Read The Latest FANEURYSM"]/..//a'),
|
|
|
|
('HijinksEnsueConvention', '//h4[text()="Latest Fancy Convention Sketches"]/..//a'),
|
|
|
|
('HijinksEnsuePhoto', '//h4[text()="Latest Fancy Photo Comic"]/..//a')
|
|
|
|
]:
|
2016-04-12 21:11:39 +00:00
|
|
|
add(name, starterXPath)
|