home *** CD-ROM | disk | FTP | other *** search
- __license__ = 'GPL v3'
- __copyright__ = '2009-2010, Darko Miletic <darko.miletic at gmail.com>'
- '''
- staradvertiser.com
- '''
-
- from calibre.web.feeds.news import BasicNewsRecipe
-
- class Starbulletin(BasicNewsRecipe):
- title = 'Honolulu Star Advertiser'
- __author__ = 'Darko Miletic'
- description = "Latest national and local Hawaii sports news"
- publisher = 'Honolulu Star-Advertiser'
- category = 'news, Honolulu, Hawaii'
- oldest_article = 2
- max_articles_per_feed = 100
- language = 'en'
- no_stylesheets = True
- use_embedded_content = False
- encoding = 'utf8'
- publication_type = 'newspaper'
- extra_css = ' body{font-family: Verdana,Arial,Helvetica,sans-serif} h1,.brown,.postCredit{color: #663300} .storyDeck{font-size: 1.2em; font-weight: bold} '
-
- conversion_options = {
- 'comment' : description
- , 'tags' : category
- , 'publisher' : publisher
- , 'language' : language
- , 'linearize_tables' : True
- }
-
- remove_tags_before = dict(attrs={'id':'storyTitle'})
- remove_tags_after = dict(name='div',attrs={'class':'storytext'})
- remove_tags = [
- dict(name=['object','link','script','span'])
- ,dict(attrs={'class':'insideStoryImage'})
- ,dict(attrs={'name':'fb_share'})
- ,dict(name='div',attrs={'class':'storytext'})
- ]
-
- feeds = [
- (u'Headlines' , u'http://www.staradvertiser.com/staradvertiser_headlines.rss' )
- ,(u'News' , u'http://www.staradvertiser.com/news/index.rss' )
- ,(u'Sports' , u'http://www.staradvertiser.com/sports/index.rss' )
- ,(u'Features' , u'http://www.staradvertiser.com/features/index.rss' )
- ,(u'Editorials', u'http://www.staradvertiser.com/editorials/index.rss' )
- ,(u'Business' , u'http://www.staradvertiser.com/business/index.rss' )
- ,(u'Travel' , u'http://www.staradvertiser.com/travel/index.rss' )
- ]
-