Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2011, 12:46 PM   #1
Medius
Junior Member
Medius began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2011
Device: Nook Color
Macleans Magazine Update

Hi,

Here is an updated and working version of Macleans Magazine recipe.

I based this off of the existing sexymax15 recipe.

Macleans seems to have revamped their website, and the old recipe wasn't working.

Spoiler:

Code:
#!/usr/bin/env  python
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1308306308(BasicNewsRecipe):
    title          = u'Macleans Magazine'
    language = 'en_CA'
    __author__ = 'Medius'
    oldest_article = 7
    cover_url = 'http://www.rogersmagazines.com/rms_covers/md/CLE_md.jpg'

    use_embedded_content = False

    remove_empty_feeds = True
    no_stylesheets = True
    remove_javascript = True
    remove_tags = [dict(id='header'),{'class':'comment'}]
    remove_tags_after = {'class':'pagination'}

    feeds          = [(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/')]
def print_version(self, url): return url


Hopefully someone else finds this helpful.

Thanks,
-Medius
Medius is offline   Reply With Quote
Reply

Tags
macleans, recipe

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Magazine-like PDF viewer (like the flash magazine viewer on certain sites?)? Huyggy Reading and Management 6 12-12-2013 04:35 AM
Recipe request - Macleans Magazine canislupus Recipes 7 07-24-2011 08:38 AM
The Magazine is Dead. Long Live the Magazine! kennyc News 17 11-01-2010 12:36 PM
How can I update creation time for a title when I update the book info or convert it setherd Calibre 3 10-30-2010 01:51 PM
Magazine FREEBIES - HUB magazine: Weekly Tales of SF Dr. Drib Deals, Freebies, and Resources (No Self-Promotion) 3 11-07-2009 12:07 PM


All times are GMT -4. The time now is 03:22 AM.


MobileRead.com is a privately owned, operated and funded community.