home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / gram_pl.recipe < prev    next >
Text File  |  2011-09-09  |  1KB  |  17 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class Gram_pl(BasicNewsRecipe):
  4.     title          = u'Gram.pl'
  5.     __author__        = 'fenuks'
  6.     description   = 'Gram.pl - site about computer games'
  7.     category       = 'games'
  8.     language       = 'pl'
  9.     oldest_article = 8
  10.     max_articles_per_feed = 100
  11.     no_stylesheets= True
  12.     cover_url=u'http://www.gram.pl/www/01/img/grampl_zima.png'
  13.     remove_tags= [dict(name='p', attrs={'class':['extraText', 'must-log-in']}), dict(attrs={'class':['el', 'headline', 'post-info']}), dict(name='div', attrs={'class':['twojaOcena', 'comment-body', 'comment-author vcard', 'comment-meta commentmetadata', 'tw_button']}), dict(id=['igit_rpwt_css', 'comments', 'reply-title', 'igit_title'])]
  14.     keep_only_tags= [dict(name='div', attrs={'class':['main', 'arkh-postmetadataheader', 'arkh-postcontent', 'post', 'content', 'news_header', 'news_subheader', 'news_text']}), dict(attrs={'class':['contentheading', 'contentpaneopen']})]
  15.     feeds          = [(u'gram.pl - informacje', u'http://www.gram.pl/feed_news.asp'),
  16.           (u'gram.pl - publikacje', u'http://www.gram.pl/feed_news.asp?type=articles')]
  17.