02-12-2011, 01:54 PM | #1 |
Connoisseur
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
|
New Recipe - Wyoming Tribune Eagle Online
Just made this for another person I've been helping out with Calibre, thought it might be useful for other folks.
Code:
class WyomingTribuneEagle(BasicNewsRecipe): title = u'Wyoming Tribune Eagle Online' description = 'Headquartered in Cheyenne, the Wyoming Tribune-Eagle is the second-largest daily newspaper in Wyoming and its largest locally owned newspaper.' __author__ = 'Laura Gjovaag' oldest_article = 7 max_articles_per_feed = 100 remove_javascript = True no_stylesheets = True remove_empty_feeds = True feeds = [ (u'Local News', u'http://www.wyomingnews.com/?rss=news'), (u'Sports', u'http://www.wyomingnews.com/?rss=sports'), (u'Entertainment', u'http://www.wyomingnews.com/?rss=entertainment'), (u'Outdoors', u'http://www.wyomingnews.com/?rss=outdoors'), (u'Editorial', u'http://www.wyomingnews.com/?rss=opinion/staff_editorials'), (u'Editor', u'http://www.wyomingnews.com/?rss=opinion/editors_column'), (u'Letters', u'http://www.wyomingnews.com/?rss=opinion/featured_letter'), (u'Obits', u'http://www.wyomingnews.com/?rss=obituaries'), ] def print_version(self, url): return url.replace('.txt', '.prt') keep_only_tags = [ dict(name='span', attrs={'class':['timestamp']}), dict(name=['h2', 'p']), ] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Chronicle Tribune recipe help | madman911 | Recipes | 0 | 01-29-2011 11:33 PM |
Wichita Eagle Newspaper Recipe | CommNavRizzo | Recipes | 0 | 01-13-2011 01:46 PM |
would like a recipe to pull down a free online book | N13L5 | Recipes | 17 | 10-09-2010 10:38 AM |
Fetch Hartford Courant based on Tribune recipe | Being | Calibre | 6 | 12-27-2009 09:54 AM |
Hello from Wyoming | kbarnsda | Introduce Yourself | 3 | 02-21-2008 12:48 PM |