mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
28 lines
806 B
Python
28 lines
806 B
Python
#!/usr/bin/env python
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = u'2011, Tomasz Dlugosz <tomek3d@gmail.com>'
|
|
'''
|
|
swiatczytnikow.pl
|
|
'''
|
|
|
|
import re
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class swiatczytnikow(BasicNewsRecipe):
|
|
title = u'Świat Czytników'
|
|
description = u'Czytniki e-książek w Polsce. Jak wybrać, kupić i korzystać z Amazon Kindle i innych'
|
|
language = 'pl'
|
|
__author__ = u'Tomasz D\u0142ugosz'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
|
|
feeds = [(u'Świat Czytników - wpisy', u'http://swiatczytnikow.pl/feed')]
|
|
|
|
remove_tags = [dict(name='ul', attrs={'class': 'similar-posts'}),
|
|
dict(name='div', attrs={'class': 'feedflare'})]
|
|
|
|
preprocess_regexps = [
|
|
(re.compile(u'<h3>Czytaj dalej:</h3>'), lambda match: '')]
|