mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-02-04 10:03:30 -05:00
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
#!/usr/bin/env python
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = 'teepel'
|
|
|
|
'''
|
|
media2.pl
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class media2_pl(BasicNewsRecipe):
|
|
title = u'Media2'
|
|
__author__ = 'teepel <teepel44@gmail.com>'
|
|
language = 'pl'
|
|
description =u'Media2.pl to jeden z najczęściej odwiedzanych serwisów dla profesjonalistów z branży medialnej, telekomunikacyjnej, public relations oraz nowych technologii.'
|
|
masthead_url='http://media2.pl/res/logo/www.png'
|
|
remove_empty_feeds= True
|
|
oldest_article = 1
|
|
max_articles_per_feed = 100
|
|
remove_javascript=True
|
|
no_stylesheets=True
|
|
simultaneous_downloads = 5
|
|
|
|
extra_css = '''.news-lead{font-weight: bold; }'''
|
|
|
|
keep_only_tags =[]
|
|
keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'news-item tpl-big'}))
|
|
|
|
remove_tags =[]
|
|
remove_tags.append(dict(name = 'span', attrs = {'class' : 'news-comments'}))
|
|
remove_tags.append(dict(name = 'div', attrs = {'class' : 'item-sidebar'}))
|
|
remove_tags.append(dict(name = 'div', attrs = {'class' : 'news-tags'}))
|
|
|
|
feeds = [(u'Media2', u'http://feeds.feedburner.com/media2')]
|