home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3946 < prev    next >
Encoding:
Text File  |  2009-10-14  |  1.3 KB  |  40 lines

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. nspm.rs/nspm-in-english
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class Nspm_int(BasicNewsRecipe):
  12.     title                 = 'NSPM in English'
  13.     __author__            = 'Darko Miletic'
  14.     description           = 'Magazine dedicated to political theory and sociological research'        
  15.     oldest_article        = 20
  16.     max_articles_per_feed = 100
  17.     language = 'en'
  18.  
  19.     no_stylesheets        = True
  20.     use_embedded_content  = False
  21.     INDEX                 = 'http://www.nspm.rs/?alphabet=l'
  22.     cover_url = 'http://nspm.rs/templates/jsn_epic_pro/images/logol.jpg'
  23.     html2lrf_options = [
  24.                           '--comment', description
  25.                         , '--base-font-size', '10'
  26.                         , '--category', 'news, politics, Serbia, english'
  27.                         , '--publisher', 'IIC NSPM'
  28.                         ]
  29.  
  30.     def get_browser(self):
  31.         br = BasicNewsRecipe.get_browser()
  32.         br.open(self.INDEX)
  33.         return br
  34.  
  35.  
  36.     keep_only_tags = [dict(name='div', attrs={'id':'jsn-mainbody'})]
  37.     remove_tags    = [dict(name='div', attrs={'id':'yvComment'   })]
  38.  
  39.     feeds = [ (u'NSPM in English', u'http://nspm.rs/nspm-in-english/feed/rss.html')]
  40.