home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3987 < prev    next >
Encoding:
Text File  |  2010-05-19  |  1.1 KB  |  31 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class PolitiFactCom(BasicNewsRecipe):
  4.     title          = u'Politifact'
  5.     __author__     = u'Michael Heinz'
  6.     oldest_article = 21
  7.     max_articles_per_feed = 100
  8.     recursion = 0
  9.     language = 'en'
  10.  
  11.     no_stylesheets = True
  12.  
  13.     publication_type = 'magazine'
  14.     masthead_url = 'http://static.politifact.com.s3.amazonaws.com/images/politifactdotcom-flag-fff_01.png'
  15.     cover_url = 'http://static.politifact.com.s3.amazonaws.com/images/politifactdotcom-flag-fff_01.png'
  16.  
  17.     remove_tags = [
  18.                      dict(name='div', attrs={'class':'pfstoryarchive'}),
  19.                      dict(name='div', attrs={'class':'pfhead'}),
  20.                      dict(name='div', attrs={'class':'boxmid'}),
  21.                   ]
  22.  
  23.     keep_only_tags = [dict(name='div', attrs={'class':'pfcontentleft'})]
  24.     feeds          = [
  25.                      (u'Articles', u'http://www.politifact.com/feeds/articles/truth-o-meter/'),
  26.                      (u'Obamameter', u'http://politifact.com/feeds/updates/'),
  27.                      (u'Statements', u'http://www.politifact.com/feeds/statements/truth-o-meter/')
  28.                      ]
  29.  
  30.  
  31.