mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/t3d/calibre
This commit is contained in:
commit
159031b2ca
@ -1,30 +0,0 @@
|
|||||||
__license__ = 'GPL v3'
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
|
||||||
|
|
||||||
class BlogBiszopa(BasicNewsRecipe):
|
|
||||||
title = u'Blog Biszopa'
|
|
||||||
__author__ = 'fenuks'
|
|
||||||
description = u'Zapiski z Granitowego Miasta'
|
|
||||||
category = 'history'
|
|
||||||
#publication_type = ''
|
|
||||||
language = 'pl'
|
|
||||||
#encoding = ''
|
|
||||||
#extra_css = ''
|
|
||||||
cover_url = 'http://blogbiszopa.pl/wp-content/themes/biszop/images/logo.png'
|
|
||||||
masthead_url = ''
|
|
||||||
use_embedded_content = False
|
|
||||||
oldest_article = 7
|
|
||||||
max_articles_per_feed = 100
|
|
||||||
no_stylesheets = True
|
|
||||||
remove_empty_feeds = True
|
|
||||||
remove_javascript = True
|
|
||||||
remove_attributes = ['style', 'font']
|
|
||||||
ignore_duplicate_articles = {'title', 'url'}
|
|
||||||
|
|
||||||
keep_only_tags = [dict(id='main-content')]
|
|
||||||
remove_tags = [dict(name='footer')]
|
|
||||||
#remove_tags_after = {}
|
|
||||||
#remove_tags_before = {}
|
|
||||||
|
|
||||||
feeds = [(u'Artyku\u0142y', u'http://blogbiszopa.pl/feed/')]
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 551 B |
Binary file not shown.
Before Width: | Height: | Size: 581 B |
@ -1,39 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
|
||||||
__copyright__ = '2011, Attis <attis@attis.one.pl>'
|
|
||||||
__version__ = 'v. 0.1'
|
|
||||||
|
|
||||||
import re
|
|
||||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
|
||||||
|
|
||||||
class KorespondentPL(BasicNewsRecipe):
|
|
||||||
title = u'Korespondent.pl'
|
|
||||||
publisher = u'Korespondent.pl'
|
|
||||||
description = u'Centrum wolnorynkowe - serwis ludzi wolnych'
|
|
||||||
encoding = 'utf-8'
|
|
||||||
__author__ = 'Attis'
|
|
||||||
language = 'pl'
|
|
||||||
oldest_article = 15
|
|
||||||
max_articles_per_feed = 100
|
|
||||||
remove_javascript = True
|
|
||||||
no_stylesheets = True
|
|
||||||
|
|
||||||
keep_only_tags = [dict(name='div', attrs={'class':'publicystyka'})]
|
|
||||||
remove_tags = [{'name': 'meta'}, {'name':'div', 'attrs': {'class': 'zdjecie'} }]
|
|
||||||
extra_css = '.naglowek {font-size: small}\n .tytul {font-size: x-large; padding-bottom: 10px; padding-top: 30px} \n .external {font-size: small}'
|
|
||||||
|
|
||||||
preprocess_regexps = [
|
|
||||||
(re.compile(u'<a href="index\.php.*>(.*)</a>'),
|
|
||||||
lambda match: match.group(1) ),
|
|
||||||
(re.compile(u'<i>'),
|
|
||||||
lambda match:'<i class="external">' ),
|
|
||||||
(re.compile(u'<p></p>Więcej'),
|
|
||||||
lambda match:'Więcej' ),
|
|
||||||
(re.compile(u'target="_blank"'),
|
|
||||||
lambda match:'target="_blank" class="external"' ),
|
|
||||||
(re.compile(u'<p align="center">\nPoczytaj inne teksty w <a href="http://www.korespondent.pl">Serwisie wolnorynkowym Korespondent.pl</a>.*</body>', re.DOTALL|re.IGNORECASE),
|
|
||||||
lambda match: '</div></body>'),
|
|
||||||
]
|
|
||||||
|
|
||||||
feeds = [(u'Serwis informacyjny', u'http://korespondent.pl/rss.xml')]
|
|
Loading…
x
Reference in New Issue
Block a user