1# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai 2import re 3from calibre.web.feeds.news import BasicNewsRecipe 4 5 6class Computerworld_pl(BasicNewsRecipe): 7 title = u'Computerworld.pl' 8 __author__ = 'fenuks' 9 description = u'Serwis o IT w przemyśle, finansach, handlu, administracji oraz rynku IT i telekomunikacyjnym - wiadomości, opinie, analizy, porady prawne' 10 category = 'IT' 11 language = 'pl' 12 masthead_url = 'http://g1.computerworld.pl/cw/beta_gfx/cw2.gif' 13 cover_url = 'http://g1.computerworld.pl/cw/beta_gfx/cw2.gif' 14 no_stylesheets = True 15 oldest_article = 7 16 max_articles_per_feed = 100 17 use_embedded_content = False 18 preprocess_regexps = [(re.compile(u'Zobacz również:', re.IGNORECASE), lambda m: ''), 19 (re.compile(u'[*]+reklama[*]+', re.IGNORECASE), lambda m: ''), ] 20 keep_only_tags = [dict(name='article')] 21 remove_tags = [dict(attrs={'class': ['share_tools nocontent', 'rec']}), 22 dict(name='ul',attrs={'class':'tags'}), 23 dict(name='ol'), 24 dict(id=['topComment', 'bottom_tools'])] 25 26 feeds = [(u'Wiadomo\u015bci', u'https://www.computerworld.pl/news?rss')] 27