mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
66 lines
3.8 KiB
Plaintext
66 lines
3.8 KiB
Plaintext
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
'''
|
|
Hamilton Spectator Calibre Recipe
|
|
'''
|
|
|
|
|
|
class HamiltonSpectator(BasicNewsRecipe):
|
|
title = u'Hamilton Spectator'
|
|
oldest_article = 2
|
|
max_articles_per_feed = 100
|
|
auto_cleanup = True
|
|
__author__ = u'Eric Coolman'
|
|
publisher = u'thespec.com'
|
|
description = u'Ontario Canada Newspaper'
|
|
category = u'News, Ontario, Canada'
|
|
remove_javascript = True
|
|
use_embedded_content = False
|
|
no_stylesheets = True
|
|
language = 'en_CA'
|
|
encoding = 'utf-8'
|
|
|
|
feeds = [
|
|
(u'Top Stories', u'http://www.thespec.com/rss?query=/&assetType=Article'),
|
|
(u'All News', u'http://www.thespec.com/rss?query=/news&assetType=Article'),
|
|
(u'Local', u'http://www.thespec.com/rss?query=/local&assetType=Article'),
|
|
(u'Ontario', u'http://www.thespec.com/rss?query=/ontario&assetType=Article'),
|
|
(u'Canada', u'http://www.thespec.com/rss?query=/canada&assetType=Article'),
|
|
(u'World News', u'http://www.thespec.com/rss?query=/world&assetType=Article'),
|
|
(u'Business', u'http://www.thespec.com/rss?query=/business&assetType=Article'),
|
|
(u'Crime', u'http://www.thespec.com/rss?query=/crime&assetType=Article'),
|
|
(u'All Sports', u'http://www.thespec.com/rss?query=/sports&assetType=Article'),
|
|
(u'Ticats', u'http://www.thespec.com/rss?query=/sports/ticats&assetType=Article'),
|
|
(u'Bulldogs', u'http://www.thespec.com/rss?query=/sports/bulldogs&assetType=Article'),
|
|
(u'High School Sports',
|
|
u'http://www.thespec.com/rss?query=/sports/highschools&assetType=Article'),
|
|
(u'Local Sports', u'http://www.thespec.com/rss?query=/sports/local&assetType=Article'),
|
|
(u'What''s On', u'http://www.thespec.com/rss?query=/whatson&assetType=Article'),
|
|
(u'Arts and Entertainment',
|
|
u'http://www.thespec.com/rss?query=/whatson/artsentertainment&assetType=Article'),
|
|
(u'Books', u'http://www.thespec.com/rss?query=/whatson/books&assetType=Article'),
|
|
(u'Movies', u'http://www.thespec.com/rss?query=/whatson/movies&assetType=Article'),
|
|
(u'Music', u'http://www.thespec.com/rss?query=/whatson/music&assetType=Article'),
|
|
(u'Restaurant Reviews',
|
|
u'http://www.thespec.com/rss?query=/whatson/restaurants&assetType=Article'),
|
|
(u'Opinion', u'http://www.thespec.com/rss?query=/opinion&assetType=Article'),
|
|
(u'Opinion Columns',
|
|
u'http://www.thespec.com/rss?query=/opinion/columns&assetType=Article'),
|
|
(u'Cartoons', u'http://www.thespec.com/rss?query=/opinion/cartoons&assetType=Article'),
|
|
(u'Letters', u'http://www.thespec.com/rss?query=/opinion/letters&assetType=Article'),
|
|
(u'Editorial', u'http://www.thespec.com/rss?query=/opinion/editorial&assetType=Article'),
|
|
(u'Community', u'http://www.thespec.com/rss?query=/community&assetType=Article'),
|
|
(u'Education', u'http://www.thespec.com/rss?query=/community/education&assetType=Article'),
|
|
(u'Faith', u'http://www.thespec.com/rss?query=/community/faith&assetType=Article'),
|
|
(u'Contests', u'http://www.thespec.com/rss?query=/community/contests&assetType=Article'),
|
|
(u'Living', u'http://www.thespec.com/rss?query=/living&assetType=Article'),
|
|
(u'Food', u'http://www.thespec.com/rss?query=/living/food&assetType=Article'),
|
|
(u'Health and Fitness',
|
|
u'http://www.thespec.com/rss?query=/living/healthfitness&assetType=Article'),
|
|
(u'Your Home', u'http://www.thespec.com/rss?query=/living/home&assetType=Article'),
|
|
(u'Travel', u'http://www.thespec.com/rss?query=/living/travel&assetType=Article'),
|
|
(u'Family and Parenting',
|
|
u'http://www.thespec.com/rss?query=/living/familyparenting&assetType=Article'),
|
|
(u'Style', u'http://www.thespec.com/rss?query=/living/style&assetType=Article')
|
|
]
|