home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_4041 < prev    next >
Encoding:
Text File  |  2010-10-06  |  858 b   |  21 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1286351181(BasicNewsRecipe):
  4.     title          = u'gsp.ro'
  5.     __author__   = 'bucsie'
  6.     oldest_article = 2
  7.     max_articles_per_feed = 100
  8.     language='ro'
  9.     cover_url ='http://www.gsp.ro/images/sigla_rosu.jpg'
  10.  
  11.     remove_tags = [
  12.                        dict(name='div', attrs={'class':['related_articles', 'articol_noteaza straight_line dotted_line_top', 'comentarii','mai_multe_articole']}),
  13.                        dict(name='div', attrs={'id':'icons'})
  14.                         ]
  15.     remove_tags_after = dict(name='div', attrs={'id':'adoceanintactrovccmgpmnyt'})
  16.  
  17.     feeds          = [(u'toate stirile', u'http://www.gsp.ro/index.php?section=section&screen=rss')]
  18.  
  19.     def print_version(self, url):
  20.          return 'http://www1.gsp.ro/print/' + url[(url.rindex('/')+1):]
  21.