home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3684 < prev    next >
Encoding:
Text File  |  2010-01-09  |  1.3 KB  |  29 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class DallasNews(BasicNewsRecipe):
  4.     title          = u'The Dallas Morning News'
  5.     language       = 'en'
  6.     oldest_article = 2 #days
  7.     max_articles_per_feed = 25
  8.  
  9.     no_stylesheets = True
  10.     remove_tags_before = dict(name='h2', attrs={'class':'vitstoryheadline'})
  11.     remove_tags_after  = dict(name='div', attrs={'style':'width: 100%; clear: right'})
  12.     remove_tags_after  = dict(name='div', attrs={'id':'article_tools_bottom'})
  13.     remove_tags = [
  14.        dict(name='iframe'),
  15.        dict(name='div', attrs={'class':'biblockmore'}),
  16.        dict(name='div', attrs={'style':'width: 100%; clear: right'}),
  17.        dict(name='div', attrs={'id':'article_tools_bottom'}),
  18.        #dict(name='ul', attrs={'class':'articleTools'}),
  19.     ]
  20.  
  21.     feeds          = [
  22.                       ('Latest News', 'http://www.dallasnews.com/newskiosk/rss/dallasnewslatestnews.xml'),
  23.                       ('Local News', 'http://www.dallasnews.com/newskiosk/rss/dallasnewslocalnews.xml'),
  24.               ('Nation and World', 'http://www.dallasnews.com/newskiosk/rss/dallasnewsnationworld.xml'),
  25.               ('Politics', 'http://www.dallasnews.com/newskiosk/rss/dallasnewsnationalpolitics.xml'),
  26.               ('Science', 'http://www.dallasnews.com/newskiosk/rss/dallasnewsscience.xml'),
  27.                     ]
  28.  
  29.