09-25-2010, 06:52 AM | #1 |
Member
Posts: 22
Karma: 10
Join Date: Sep 2010
Device: none
|
Mingpao HK News Recipe Please!
Hi,
I'm looking for a recipe for Mingpao Hong Kong News in traditional Chinese. I couldn't find it in the Chinese Recipes already provided. The RSS links are here: Code:
http://inews.mingpao.com/cfm/inews_rss.cfm Last edited by icaria; 09-28-2010 at 04:42 AM. |
09-30-2010, 01:47 AM | #2 |
Junior Member
Posts: 5
Karma: 12
Join Date: Sep 2010
Device: kindle 3
|
hi
here is a recipe for oriental daily. i have only tried it on kindle 3 and kindle PC and it seems to work. Code:
__license__ = 'GPL v3' __copyright__ = '2010, Larry Chan <larry1chan at gmail.com>' ''' oriental daily ''' import re from calibre.web.feeds.recipes import BasicNewsRecipe class OrientalDaily(BasicNewsRecipe): title = 'Oriental Dailly' __author__ = 'Larry Chan, larry1chan' description = 'News from HK' oldest_article = 2 max_articles_per_feed = 100 simultaneous_downloads = 5 no_stylesheets = True #delay = 1 use_embedded_content = False encoding = 'utf8' publisher = 'Oriental Daily' category = 'news, HK, world' language = 'zh-hk' publication_type = 'newsportal' extra_css = ' body{ font-family: Verdana,Helvetica,Arial,sans-serif } .introduction{font-weight: bold} .story-feature{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} ' conversion_options = { 'comments' : description ,'tags' : category ,'language' : language ,'publisher' : publisher ,'linearize_tables': True } remove_tags_after = dict(id='bottomNavCTN') keep_only_tags = [ dict(name='div', attrs={'id':['leadin', 'contentCTN-right']}) ] remove_tags = [ dict(name='div', attrs={'class':['largeAdsCTN', 'contentCTN-left', 'textAdsCTN', 'footerAds clear']}), dict(name='div', attrs={'id':['articleNav']}) ] remove_attributes = ['width','height','href'] feeds = [(u'Oriental Daily', u'http://orientaldaily.on.cc/rss/news.xml')] Last edited by kovidgoyal; 10-07-2010 at 12:23 PM. |
Advert | |
|
10-07-2010, 02:04 AM | #3 |
Member
Posts: 22
Karma: 10
Join Date: Sep 2010
Device: none
|
Thanks, but I couldn't get it to work...
|
10-08-2010, 02:24 AM | #4 |
Junior Member
Posts: 5
Karma: 12
Join Date: Sep 2010
Device: kindle 3
|
just download the latest version of calibre. you will find the new news feed.
|
10-09-2010, 03:29 AM | #5 |
Member
Posts: 22
Karma: 10
Join Date: Sep 2010
Device: none
|
Thank You so much!!
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add only news tag to downloaded news? | eric11210 | Calibre | 2 | 08-06-2010 05:51 AM |
Old news but good news | PsyDocJoanne | Reading Recommendations | 31 | 10-29-2008 07:05 AM |
Bad news, good news, and a question | MSWallack | Sony Reader | 3 | 07-15-2008 03:25 PM |
AP News Begins Charging Web News Providers | Bob Russell | Lounge | 1 | 04-20-2005 10:38 AM |