06-26-2012, 05:28 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2012
Device: Kindle 4
|
ČT24 - Czech TV News Channel
Hi everybody,
although the Czechs are only a minority among Calibre users, I would like to add my tiny contribution to the amazing recipe database. It is only a simple recipe fetching news from RSS feed of the public Czech TV station "ČT24". It is a non-stop-based news server, the recipe fetches up to 100 articles per feed (with articles not older than 24 hours). Images are removed. Categories (feeds) included: Main News Home World Regions Culture Business Sport - Main News Sport - 2012 Olympics Hope this could help somebody. Code:
class AdvancedUserRecipe1339974788(BasicNewsRecipe): title = u'\u010cT24' oldest_article = 1 max_articles_per_feed = 100 auto_cleanup = True feeds = [(u'Hlavn\xed zpr\xe1vy', u'http://www.ceskatelevize.cz/ct24/rss/hlavni-zpravy/'), (u'Dom\xe1c\xed', u'http://www.ceskatelevize.cz/ct24/rss/domaci/'), (u'Sv\u011bt', u'http://www.ceskatelevize.cz/ct24/rss/svet/'), (u'Regiony', u'http://www.ceskatelevize.cz/ct24/rss/regiony/'), (u'Kultura', u'http://www.ceskatelevize.cz/ct24/rss/kultura/'), (u'Ekonomika', u'http://www.ceskatelevize.cz/ct24/rss/ekonomika/'), (u'Sport - hlavn\xed zpr\xe1vy', u'http://www.ceskatelevize.cz/ct4/rss/hlavni-zpravy/'), (u'OH 2012', u'http://www.ceskatelevize.cz/ct4/rss/oh-2012/')] remove_tags = [dict(name='img')] |
06-27-2012, 01:01 AM | #2 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
added.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New receipe: novinky.cz - czech news portal | latal.tomas | Recipes | 2 | 04-30-2011 09:16 AM |
iHNed.cz (Czech news source) | running | Recipes | 1 | 01-17-2011 12:17 PM |
UK Channel 4 news item on ebook piracy | garygibsonsf | News | 3 | 10-19-2009 07:25 AM |
Sony PRS 600 for $268.20 or better (US only) | orion2001 | News | 0 | 09-30-2009 05:57 PM |
Walmart PRS-505 at $268.98 | mjh215 | Sony Reader | 28 | 06-25-2008 12:31 PM |