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
|
|
|
|
2015-11-04 22:43:31 +00:00
|
|
|
from ..scraper import _ParserScraper
|
2016-04-06 22:20:03 +00:00
|
|
|
|
2012-11-21 20:57:26 +00:00
|
|
|
|
2015-11-04 22:43:31 +00:00
|
|
|
class _Creators(_ParserScraper):
|
2016-04-06 22:20:03 +00:00
|
|
|
url = 'https://www.creators.com/features/'
|
|
|
|
imageSearch = '//a[contains(@class,"fancybox")]/img'
|
|
|
|
prevSearch = '//a[@id="nav_prev"]'
|
|
|
|
latestSearch = '//div[contains(@class,"caption")]/a'
|
2015-11-04 22:43:31 +00:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def getName(cls):
|
|
|
|
return 'Creators/' + cls.__name__
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def starter(cls):
|
2016-04-06 22:20:03 +00:00
|
|
|
start = cls.url + cls.path
|
|
|
|
data = cls.getPage(start)
|
|
|
|
return cls.fetchUrl(start, data, cls.latestSearch)
|
2015-11-04 22:43:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
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'
|
2015-11-04 22:43:31 +00:00
|
|
|
|
|
|
|
|
2016-04-06 22:20:03 +00:00
|
|
|
class DonaldDuck(_Creators):
|
|
|
|
path = 'donald-duck'
|
|
|
|
|
|
|
|
|
|
|
|
class Flare(_Creators):
|
|
|
|
path = 'flare'
|
|
|
|
|
2015-11-04 22:43:31 +00:00
|
|
|
|
|
|
|
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'
|
2015-11-04 22:43:31 +00:00
|
|
|
|
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
|
2012-11-28 17:15:12 +00:00
|
|
|
# DO NOT REMOVE
|
2015-11-04 22:43:31 +00:00
|
|
|
# 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'
|
|
|
|
|
|
|
|
|
2015-11-04 22:43:31 +00:00
|
|
|
class Archie(_Creators):
|
2016-04-06 22:20:03 +00:00
|
|
|
path = 'archie'
|
|
|
|
|
|
|
|
|
|
|
|
class ArchieSpanish(_CreatorsEs):
|
|
|
|
path = 'archie-spanish'
|
2015-11-04 22:43:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2015-11-04 22:43:31 +00:00
|
|
|
# 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
|
2015-11-04 22:43:31 +00:00
|
|
|
# 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
|
2015-11-04 22:43:31 +00:00
|
|
|
# Heathcliff has a duplicate in gocomics
|
2016-04-06 22:20:03 +00:00
|
|
|
class HeathcliffSpanish(_CreatorsEs):
|
|
|
|
path = 'heathcliff-spanish'
|
2015-11-04 22:43:31 +00:00
|
|
|
|
|
|
|
|
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
|
2015-11-04 22:43:31 +00:00
|
|
|
# LibertyMeadows has a duplicate in gocomics
|
|
|
|
class LongStoryShort(_Creators):
|
2016-04-06 22:20:03 +00:00
|
|
|
path = 'long-story-short'
|
2015-11-04 22:43:31 +00:00
|
|
|
|
|
|
|
|
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
|
2015-11-04 22:43:31 +00:00
|
|
|
# Momma has a duplicate in gocomics
|
2016-04-06 22:20:03 +00:00
|
|
|
class Mossprints(_Creators):
|
|
|
|
path = 'mossprints'
|
|
|
|
|
2015-11-04 22:43:31 +00:00
|
|
|
|
2016-04-06 22:20:03 +00:00
|
|
|
# NestHeads has a duplicate in gocomics
|
2015-11-04 22:43:31 +00:00
|
|
|
# OneBigHappy has a duplicate in gocomics
|
2016-04-06 22:20:03 +00:00
|
|
|
# PaulSzep has a duplicate in gocomics
|
2015-11-04 22:43:31 +00:00
|
|
|
# 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
|
2015-11-04 22:43:31 +00:00
|
|
|
# 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
|
2015-11-04 22:43:31 +00:00
|
|
|
# TheOtherCoast has a duplicate in gocomics
|
2016-04-06 22:20:03 +00:00
|
|
|
class TomStiglich(_Creators):
|
|
|
|
path = 'tom-stiglich'
|
2015-11-04 22:43:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2015-11-04 22:43:31 +00:00
|
|
|
# ZackHill has a duplicate in gocomics
|