mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-26 06:47:25 -05:00
18 lines
1.0 KiB
Plaintext
18 lines
1.0 KiB
Plaintext
from calibre.web.feeds.news import BasicNewsRecipe
|
|
import re
|
|
class Tablety_pl(BasicNewsRecipe):
|
|
title = u'Tablety.pl'
|
|
__author__ = 'fenuks'
|
|
description = u'tablety.pl - latest tablet news'
|
|
masthead_url= 'http://www.tablety.pl/wp-content/themes/kolektyw/img/logo.png'
|
|
cover_url = 'http://www.tablety.pl/wp-content/themes/kolektyw/img/logo.png'
|
|
category = 'IT'
|
|
language = 'pl'
|
|
oldest_article = 8
|
|
max_articles_per_feed = 100
|
|
preprocess_regexps = [(re.compile(ur'<p><strong>Przeczytaj także.*?</a></strong></p>', re.DOTALL), lambda match: ''), (re.compile(ur'<p><strong>Przeczytaj koniecznie.*?</a></strong></p>', re.DOTALL), lambda match: '')]
|
|
remove_tags_before=dict(name="h1", attrs={'class':'entry-title'})
|
|
remove_tags_after=dict(name="div", attrs={'class':'snap_nopreview sharing robots-nocontent'})
|
|
remove_tags=[dict(name='div', attrs={'class':'snap_nopreview sharing robots-nocontent'})]
|
|
feeds = [(u'Najnowsze posty', u'http://www.tablety.pl/feed/')]
|