2016-04-06 22:20:03 +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
|
2020-01-09 22:27:46 +00:00
|
|
|
# Copyright (C) 2015-2020 Tobias Gruetzmacher
|
2016-04-06 22:20:03 +00:00
|
|
|
|
|
|
|
from __future__ import absolute_import, division, print_function
|
2012-11-21 20:57:26 +00:00
|
|
|
|
2015-11-04 22:43:31 +00:00
|
|
|
from ..scraper import _ParserScraper
|
2016-04-13 21:28:43 +00:00
|
|
|
from ..helpers import indirectStarter
|
2016-04-06 22:20:03 +00:00
|
|
|
|
2012-11-21 20:57:26 +00:00
|
|
|
|
2016-05-22 21:56:59 +00:00
|
|
|
class Creators(_ParserScraper):
|
2016-04-06 22:20:03 +00:00
|
|
|
imageSearch = '//a[contains(@class,"fancybox")]/img'
|
|
|
|
prevSearch = '//a[@id="nav_prev"]'
|
|
|
|
latestSearch = '//div[contains(@class,"caption")]/a'
|
2016-04-13 21:28:43 +00:00
|
|
|
starter = indirectStarter
|
2015-11-04 22:43:31 +00:00
|
|
|
|
2016-05-22 21:56:59 +00:00
|
|
|
def __init__(self, name, path, lang=None):
|
|
|
|
super(Creators, self).__init__('Creators/' + name)
|
|
|
|
self.url = 'https://www.creators.com/features/' + path
|
|
|
|
if lang:
|
|
|
|
self.lang = lang
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def getmodules(cls):
|
|
|
|
return (
|
|
|
|
# Some comics are not listed on the "all" page (too old?)
|
|
|
|
cls('CafeconLeche', 'cafe-con-leche'),
|
|
|
|
cls('DonaldDuck', 'donald-duck'),
|
|
|
|
cls('Flare', 'flare'),
|
|
|
|
cls('FlightDeck', 'flight-deck'),
|
|
|
|
cls('GirlsAndSports', 'girls-and-sports'),
|
|
|
|
cls('HomeOffice', 'stay-at-home-dad'),
|
|
|
|
cls('HopeAndDeath', 'hope-and-death'),
|
|
|
|
cls('MickeyMouse', 'mickey-mouse'),
|
|
|
|
cls('NaturalSelection', 'natural-selection'),
|
|
|
|
cls('OffCenter', 'off-center'),
|
|
|
|
cls('Rugrats', 'rugrats'),
|
|
|
|
cls('TheQuigmans', 'the-quigmans'),
|
|
|
|
cls('WinnieThePooh', 'winnie-the-pooh'),
|
|
|
|
# do not edit anything below since these entries are generated from
|
|
|
|
# scripts/creators.py
|
|
|
|
# START AUTOUPDATE
|
|
|
|
# Agnes has a duplicate in GoComics/Agnes
|
|
|
|
# AndyCapp has a duplicate in GoComics/AndyCapp
|
|
|
|
cls('AndyMarlette', 'andy-marlette'),
|
|
|
|
cls('Archie', 'archie'),
|
|
|
|
cls('ArchieSpanish', 'archie-spanish', 'es'),
|
|
|
|
# AskShagg has a duplicate in GoComics/AskShagg
|
|
|
|
# BallardStreet has a duplicate in GoComics/BallardStreet
|
|
|
|
# BC has a duplicate in GoComics/BC
|
|
|
|
# BobGorrell has a duplicate in GoComics/BobGorrell
|
|
|
|
# ChipBok has a duplicate in GoComics/ChipBok
|
|
|
|
# ChrisBritt has a duplicate in GoComics/ChrisBritt
|
|
|
|
# ChuckleBros has a duplicate in GoComics/ChuckleBros
|
|
|
|
# DaddysHome has a duplicate in GoComics/DaddysHome
|
|
|
|
# DiamondLil has a duplicate in GoComics/DiamondLil
|
|
|
|
# DogEatDoug has a duplicate in GoComics/DogEatDoug
|
|
|
|
# DogsOfCKennel has a duplicate in GoComics/DogsOfCKennel
|
|
|
|
# FloAndFriends has a duplicate in GoComics/FloAndFriends
|
|
|
|
# ForHeavensSake has a duplicate in GoComics/ForHeavensSake
|
|
|
|
# FreeRange has a duplicate in GoComics/FreeRange
|
|
|
|
# GaryMarkstein has a duplicate in GoComics/GaryMarkstein
|
|
|
|
# GaryVarvel has a duplicate in GoComics/GaryVarvel
|
|
|
|
# Heathcliff has a duplicate in GoComics/Heathcliff
|
|
|
|
cls('HeathcliffSpanish', 'heathcliff-spanish', 'es'),
|
|
|
|
# HerbAndJamaal has a duplicate in GoComics/HerbAndJamaal
|
|
|
|
# JohnDeering has a duplicate in GoComics/JohnDeering
|
|
|
|
# KenCatalino has a duplicate in GoComics/KenCatalino
|
|
|
|
# LibertyMeadows has a duplicate in GoComics/LibertyMeadows
|
|
|
|
cls('LongStoryShort', 'long-story-short'),
|
|
|
|
# MarshallRamsey has a duplicate in GoComics/MarshallRamsey
|
|
|
|
# MichaelRamirez has a duplicate in GoComics/MichaelRamirez
|
|
|
|
# MikeLuckovich has a duplicate in GoComics/MikeLuckovich
|
|
|
|
# Momma has a duplicate in GoComics/Momma
|
|
|
|
cls('Mossprints', 'mossprints'),
|
|
|
|
# NestHeads has a duplicate in GoComics/NestHeads
|
|
|
|
# OneBigHappy has a duplicate in GoComics/OneBigHappy
|
|
|
|
# PaulSzep has a duplicate in GoComics/PaulSzep
|
|
|
|
# Rubes has a duplicate in GoComics/Rubes
|
|
|
|
# ScaryGary has a duplicate in GoComics/ScaryGary
|
|
|
|
# SpeedBump has a duplicate in GoComics/SpeedBump
|
|
|
|
# SteveBenson has a duplicate in GoComics/SteveBenson
|
|
|
|
# SteveBreen has a duplicate in GoComics/SteveBreen
|
|
|
|
# SteveKelley has a duplicate in GoComics/SteveKelley
|
|
|
|
# StrangeBrew has a duplicate in GoComics/StrangeBrew
|
|
|
|
# TheBarn has a duplicate in GoComics/TheBarn
|
|
|
|
# TheMeaningOfLila has a duplicate in GoComics/TheMeaningOfLila
|
|
|
|
# TheOtherCoast has a duplicate in GoComics/TheOtherCoast
|
|
|
|
cls('TomStiglich', 'tom-stiglich'),
|
|
|
|
# WeePals has a duplicate in GoComics/WeePals
|
|
|
|
# WizardOfId has a duplicate in GoComics/WizardOfId
|
|
|
|
cls('WizardOfIdSpanish', 'wizard-of-id-spanish', 'es'),
|
|
|
|
# WorkingItOut has a duplicate in GoComics/WorkingItOut
|
|
|
|
# ZackHill has a duplicate in GoComics/ZackHill
|
|
|
|
# END AUTOUPDATE
|
|
|
|
)
|