![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Sony PRS-T1
|
New recipes: canadian newspapers
Hello, could one of the calibre developers please include the following recipes in the next release:
Hamilton Spectator: Code:
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') ] Code:
from calibre.web.feeds.news import BasicNewsRecipe ''' Tillsonburg/Norfolk County newspapers Calibre Recipe ''' class TillsonburgNorfolkCounty(BasicNewsRecipe): title = u'Tillsonburg/Norfolk County' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True __author__ = u'Eric Coolman' publisher = u'canoe.ca' description = u'Norfolk County and Tillsonburg, Ontario Canada Newspapers' category = u'News, Ontario, Canada' remove_javascript = True use_embedded_content = False no_stylesheets = True language = 'en_CA' encoding = 'utf-8' feeds = [ (u'Simcoe Reformer', u'http://www.simcoereformer.ca/rss/'), (u'Delhi News-Record', u'http://www.delhinewsrecord.com/rss/'), (u'Tilsonburg News', u'http://www.tillsonburgnews.com/rss/') ] |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Done.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A few new and updated recipes (Chinese newspapers) | tylau0 | Recipes | 0 | 05-12-2011 11:09 AM |
Reading Canadian newspapers/magazines on Kindle? | bcgirl | Amazon Kindle | 5 | 03-21-2011 11:58 PM |
need help with recipes for indonesian newspapers | wolfmembaca | Recipes | 1 | 02-06-2011 09:30 AM |
Request for Recipes: Yakima Valley Newspapers | Tegan | Recipes | 19 | 01-20-2011 09:19 AM |
History Canadian Dept. of National Defence: Canadian Military Heritage.v1, 20 Sep 2008 | mrmikel | BBeB/LRF Books | 0 | 09-20-2008 10:53 AM |