dosage/dosagelib/plugins/creators.py

175 lines
4.1 KiB
Python
Raw Normal View History

2016-04-06 22:20:03 +00:00
# -*- coding: utf-8 -*-
2012-11-21 20:57:26 +00:00
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
2014-01-05 15:50:57 +00:00
# Copyright (C) 2012-2014 Bastian Kleineidam
2016-04-06 22:20:03 +00:00
# Copyright (C) 2015-2016 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function
2012-11-21 20:57:26 +00:00
from ..scraper import _ParserScraper
from ..helpers import indirectStarter
2016-04-06 22:20:03 +00:00
2012-11-21 20:57:26 +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'
starter = indirectStarter
@property
def name(self):
return 'Creators/' + super(_Creators, self).name
@property
def url(self):
return 'https://www.creators.com/features/' + self.path
class _CreatorsEs(_Creators):
lang = 'es'
# Some comics are not listed on the "all" page (too old?)
2016-04-06 22:20:03 +00:00
class CafeconLeche(_Creators):
path = 'cafe-con-leche'
2016-04-06 22:20:03 +00:00
class DonaldDuck(_Creators):
path = 'donald-duck'
class Flare(_Creators):
path = 'flare'
class FlightDeck(_Creators):
2016-04-06 22:20:03 +00:00
path = 'flight-deck'
class GirlsAndSports(_Creators):
path = 'girls-and-sports'
class GirlsandSportsSpanish(_CreatorsEs):
path = 'girls-and-sports-spanish'
class HomeOffice(_Creators):
path = 'stay-at-home-dad'
class HopeAndDeath(_Creators):
path = 'hope-and-death'
class MickeyMouse(_Creators):
path = 'mickey-mouse'
class NaturalSelection(_Creators):
path = 'natural-selection'
class OffCenter(_Creators):
path = 'off-center'
class Recess(_Creators):
path = 'recess'
class Rugrats(_Creators):
path = 'rugrats'
class RugratsSpanish(_CreatorsEs):
path = 'rugrats-spanish'
2016-04-06 22:20:03 +00:00
class TheQuigmans(_Creators):
path = 'the-quigmans'
class WinnieThePooh(_Creators):
path = 'winnie-the-pooh'
# do not edit anything below since these entries are generated from
# scripts/update_plugins.sh
# DO NOT REMOVE
# Agnes has a duplicate in gocomics
# AndyCapp has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
class AndyMarlette(_Creators):
path = 'andy-marlette'
class Archie(_Creators):
2016-04-06 22:20:03 +00:00
path = 'archie'
class ArchieSpanish(_CreatorsEs):
path = 'archie-spanish'
# AskShagg has a duplicate in gocomics
# BC has a duplicate in gocomics
# BallardStreet has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
# BobGorrell has a duplicate in gocomics
# ChipBok has a duplicate in gocomics
# ChrisBritt has a duplicate in gocomics
# ChuckleBros has a duplicate in gocomics
# DaddysHome has a duplicate in gocomics
# DiamondLil has a duplicate in gocomics
# DogEatDoug has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
# DogsOfCKennel has a duplicate in gocomics
# FloAndFriends has a duplicate in gocomics
# ForHeavensSake has a duplicate in gocomics
# FreeRange has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
# GaryMarkstein has a duplicate in gocomics
# GaryVarvel has a duplicate in gocomics
# Heathcliff has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
class HeathcliffSpanish(_CreatorsEs):
path = 'heathcliff-spanish'
2016-04-06 22:20:03 +00:00
# HerbAndJamaal has a duplicate in gocomics
# JohnDeering has a duplicate in gocomics
# KenCatalino has a duplicate in gocomics
# LibertyMeadows has a duplicate in gocomics
class LongStoryShort(_Creators):
2016-04-06 22:20:03 +00:00
path = 'long-story-short'
2016-04-06 22:20:03 +00:00
# MarshallRamsey has a duplicate in gocomics
# MichaelRamirez has a duplicate in gocomics
# MikeLuckovich has a duplicate in gocomics
# Momma has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
class Mossprints(_Creators):
path = 'mossprints'
2016-04-06 22:20:03 +00:00
# NestHeads has a duplicate in gocomics
# OneBigHappy has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
# PaulSzep has a duplicate in gocomics
# Rubes has a duplicate in gocomics
# ScaryGary has a duplicate in gocomics
# SpeedBump has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
# SteveBenson has a duplicate in gocomics
# SteveBreen has a duplicate in gocomics
# SteveKelley has a duplicate in gocomics
# StrangeBrew has a duplicate in gocomics
# TheBarn has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
# TheMeaningOfLila has a duplicate in gocomics
# TheOtherCoast has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
class TomStiglich(_Creators):
path = 'tom-stiglich'
# WeePals has a duplicate in gocomics
2016-04-06 22:20:03 +00:00
# WizardOfId has a duplicate in gocomics
class WizardOfIdSpanish(_CreatorsEs):
path = 'wizard-of-id-spanish'
# WorkingItOut has a duplicate in gocomics
# ZackHill has a duplicate in gocomics