12-01-2010, 10:53 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2010
Location: Northeast Texas
Device: Kindle 3
|
"The Week" Magazine Request
Another weekly newsmagazine that folks might be interested in being available for their eReader thru Calibre portal would be "The Week". It is of course weekly and deals with politics and entertainment. The RSS feed is http://theweek.com/home/info/rss. Hopefully this wouldn't be too difficult to work through. Just a thought for what others might enjoy. Thanks.
Oilfieldtrash |
12-28-2010, 12:30 AM | #2 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
Try this .. let me know .... (1st recipe)
Code:
__license__ = 'GPL v3' __copyright__ = '2010, JOlo' ''' www.theweek.com ''' from calibre.web.feeds.news import BasicNewsRecipe import string, re class TheWeek(BasicNewsRecipe): title = 'The Week Magazine' __author__ = 'Jim Olo' description = "The best of the US and international media. Daily coverage of commentary and analysis of the day's events, as well as arts, entertainment, people and gossip, and political cartoons." publisher = 'The Week Publications, Inc.' masthead_url = 'http://test.theweek.com/images/logo_theweek.gif' cover_url = masthead_url category = 'news, politics, USA' oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True encoding = 'utf-8' use_embedded_content = False language = 'en' preprocess_regexps = [(re.compile(r'<h3><a href=.*</body>', re.DOTALL), lambda match: '</body>')] remove_tags_before = dict(name='h1') remove_tags_after = dict(name='div', attrs={'class':'articleSubscribe4free'}) remove_tags = [ dict(name='div', attrs={'class':['floatLeft','imageCaption','slideshowImageAttribution','postDate','utilities','cartoonInfo','left','middle','col300','articleSubscribe4free',' articleFlyout','articleFlyout floatRight','fourFreeBar']}) ,dict(name='div', attrs={'id':['cartoonThumbs','rightColumn','header','partners']}) ,dict(name='ul', attrs={'class':{'slideshowNav','hotTopicsList topicList'}}) ] remove_attributes = ['width','height', 'style', 'font', 'color'] extra_css = ''' h1{font-family:Geneva, Arial, Helvetica, sans-serif;color:#154B7A;} h3{font-size: 14px;color:#999999; font-family:Geneva, Arial, Helvetica, sans-serif;font-weight: bold;} h2{color:#666666; font-family:Geneva, Arial, Helvetica, sans-serif;font-size:small;} p {font-family:Arial,Helvetica,sans-serif;} ''' filter_regexps = [r'www\.palmcoastdata\.com'] feeds = [ (u'News-Opinion', u'http://theweek.com/section/index/news_opinion.rss'), (u'Business', u'http://theweek.com/section/index/business.rss'), (u'Arts-Life', u'http://theweek.com/section/index/arts_life.rss'), (u'Cartoons', u'http://theweek.com/section/index/cartoon_wit/0/all-cartoons.rss') ] |
Advert | |
|
12-29-2010, 12:29 PM | #3 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
isn't there already a recipe for The Week?
|
12-29-2010, 10:38 PM | #4 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
Calibre recipe for 'The Week' (the_week_magazine_free.recipe):
- only 2 urls are correct - recipe pulls article title and sub-heading, but not the full article I didn't want to bother you .. and wanted to try my hand at creating a recipe. <<jim>> |
12-30-2010, 12:15 PM | #5 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah, good, I've updated the builtin week recipe.
|
Advert | |
|
12-31-2010, 12:25 AM | #6 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
Ahh .. so I did good?!!! Happy to belong!
|
01-09-2011, 11:50 AM | #7 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
The Week has a UK edition as well. Is it possible to do a version for the UK edition?
|
01-09-2011, 10:09 PM | #8 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
The UK online edition doesn't have RSS. And .. the rest of the UK site requires subscription/login. I can't look at anything. Can u find the UK edition RSS?
|
01-10-2011, 08:12 AM | #9 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
Aha. I can log in (as I have subscriber info), but it's a flash presentation page, not a RSS feed, so I suppose not possible.
Thanks. |
01-16-2012, 01:11 PM | #10 |
Junior Member
Posts: 3
Karma: 10
Join Date: Nov 2009
Device: Sony
|
Hi
The Uk edition of the Week has RSS feeds @ www.theweek.co.uk/rss-feeds. It would be wonderful if someone could create a recipe regards |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic Partial series available - Does B&N have an ebook "request" option, like Amazon? | crafty35a | Barnes & Noble NOOK | 1 | 01-15-2010 11:58 AM |
Request feedback on how my ePub ("My Antonia") renders on various mobile readers | Jon Noring | ePub | 5 | 11-28-2009 07:05 AM |
Free Sony Download till 15 Dec "Fantasy Magazine 2008 Sampler" | Madam Broshkina | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 12-09-2008 09:38 PM |
Article on Plastic Logic in german magazine "Der Spiegel" | Manichean | News | 1 | 09-18-2008 06:48 AM |