Update Macleans magazine

This commit is contained in:
Kovid Goyal 2011-09-20 11:00:57 -06:00
parent dd402830b7
commit 0ec60fa315

View File

@ -4,25 +4,17 @@ from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1308306308(BasicNewsRecipe): class AdvancedUserRecipe1308306308(BasicNewsRecipe):
title = u'Macleans Magazine' title = u'Macleans Magazine'
language = 'en_CA' language = 'en_CA'
__author__ = 'sexymax15' __author__ = 'Medius'
oldest_article = 30 oldest_article = 7
max_articles_per_feed = 12 cover_url = 'http://www.rogersmagazines.com/rms_covers/md/CLE_md.jpg'
use_embedded_content = False use_embedded_content = False
remove_empty_feeds = True remove_empty_feeds = True
no_stylesheets = True no_stylesheets = True
remove_javascript = True remove_javascript = True
remove_tags = [dict(name ='img'),dict (id='header'),{'class':'postmetadata'}] remove_tags = [dict(id='header'),{'class':'comment'}]
remove_tags_after = {'class':'postmetadata'} remove_tags_after = {'class':'pagination'}
feeds = [(u'Blog Central', u'http://www2.macleans.ca/category/blog-central/feed/'), feeds = [(u'Canada', u'http://www2.macleans.ca/category/canada/feed/'),
(u'Canada', u'http://www2.macleans.ca/category/canada/feed/'), (u'World', u'http://www2.macleans.ca/category/news-politics/world/feed/'), (u'Business', u'http://www2.macleans.ca/category/business/feed/'), (u'Arts & Culture', u'http://www2.macleans.ca/category/arts/feed/'), (u'Opinion', u'http://www2.macleans.ca/category/opinion/feed/'), (u'Health', u'http://www2.macleans.ca/category/life/health/feed/'), (u'Sports', u'http://www2.macleans.ca/category/life/sports/feed/'), (u'Environment', u'http://www2.macleans.ca/category/life/environment/feed/'), (u'Technology', u'http://www2.macleans.ca/category/life/technology/feed/'), (u'Travel', u'http://www2.macleans.ca/category/life/travel/feed/'), (u'Blog Central', u'http://www2.macleans.ca/category/blog-central/feed/')]
(u'World', u'http://www2.macleans.ca/category/world-from-the-magazine/feed/'),
(u'Business', u'http://www2.macleans.ca/category/business/feed/'),
(u'Arts & Culture', u'http://www2.macleans.ca/category/arts-culture/feed/'),
(u'Opinion', u'http://www2.macleans.ca/category/opinion/feed/'),
(u'Health', u'http://www2.macleans.ca/category/health-from-the-magazine/feed/'),
(u'Environment', u'http://www2.macleans.ca/category/environment-from-the-magazine/feed/')]
def print_version(self, url):
return url + 'print/'