| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
__license__ = 'GPL v3' |
| 4 |
__copyright__ = '2011, Tomasz Dlugosz <[email protected]>' |
| 5 |
''' |
| 6 |
swiatczytnikow.pl |
| 7 |
''' |
| 8 |
|
| 9 |
import re |
| 10 |
|
| 11 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 12 |
|
| 13 |
|
| 14 |
class swiatczytnikow(BasicNewsRecipe): |
| 15 |
title = 'Świat Czytników' |
| 16 |
description = 'Czytniki e-książek w Polsce. Jak wybrać, kupić i korzystać z Amazon Kindle i innych' |
| 17 |
language = 'pl' |
| 18 |
__author__ = 'Tomasz D\u0142ugosz' |
| 19 |
oldest_article = 7 |
| 20 |
max_articles_per_feed = 100 |
| 21 |
|
| 22 |
feeds = [('Świat Czytników - wpisy', 'http://swiatczytnikow.pl/feed')] |
| 23 |
|
| 24 |
remove_tags = [dict(name='ul', attrs={'class': 'similar-posts'}), dict(name='div', attrs={'class': 'feedflare'})] |
| 25 |
|
| 26 |
preprocess_regexps = [(re.compile('<h3>Czytaj dalej:</h3>'), lambda match: '')] # noqa: RUF039 |