| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
__license__ = 'GPL v3' |
| 4 |
__author__ = 'teepel <[email protected]>' |
| 5 |
|
| 6 |
''' |
| 7 |
http://www.mateusz.pl/czytania |
| 8 |
''' |
| 9 |
|
| 10 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 11 |
|
| 12 |
|
| 13 |
class czytania_mateusz(BasicNewsRecipe): |
| 14 |
title = 'Czytania na ka\u017cdy dzie\u0144' |
| 15 |
__author__ = 'teepel <[email protected]>' |
| 16 |
description = 'Codzienne czytania z jednego z najstarszych polskich serwisów katolickich.' |
| 17 |
language = 'pl' |
| 18 |
INDEX = 'http://www.mateusz.pl/czytania' |
| 19 |
oldest_article = 1 |
| 20 |
remove_empty_feeds = True |
| 21 |
no_stylesheets = True |
| 22 |
auto_cleanup = True |
| 23 |
remove_javascript = True |
| 24 |
simultaneous_downloads = 2 |
| 25 |
max_articles_per_feed = 100 |
| 26 |
|
| 27 |
feeds = [('Czytania', 'http://mateusz.pl/rss/czytania/')] |
| 28 |
|
| 29 |
remove_tags = [] |
| 30 |
remove_tags.append(dict(name='p', attrs={'class': 'top'})) |
| 31 |
|
| 32 |
# thanks t3d |
| 33 |
def get_article_url(self, article): |
| 34 |
link = article.get('link') |
| 35 |
if 'kmt.pl' not in link: |
| 36 |
return link |