mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Update Kopalnia Wiedzy
This commit is contained in:
parent
54d4991b86
commit
645d7e95c7
@ -1,5 +1,5 @@
|
|||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2011, Attis <attis@attis.one.pl>'
|
__copyright__ = '2011 Attis <attis@attis.one.pl>, 2012 Tomasz Długosz <tomek3d@gmail.com>'
|
||||||
__version__ = 'v. 0.1'
|
__version__ = 'v. 0.1'
|
||||||
|
|
||||||
import re
|
import re
|
||||||
@ -10,7 +10,7 @@ class KopalniaWiedzy(BasicNewsRecipe):
|
|||||||
publisher = u'Kopalnia Wiedzy'
|
publisher = u'Kopalnia Wiedzy'
|
||||||
description = u'Ciekawostki ze świata nauki i techniki'
|
description = u'Ciekawostki ze świata nauki i techniki'
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
__author__ = 'Attis'
|
__author__ = 'Attis & Tomasz Długosz'
|
||||||
language = 'pl'
|
language = 'pl'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
@ -18,9 +18,9 @@ class KopalniaWiedzy(BasicNewsRecipe):
|
|||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
|
|
||||||
remove_tags = [{'name':'p', 'attrs': {'class': 'keywords'} }, {'name':'div', 'attrs': {'class':'sexy-bookmarks sexy-bookmarks-bg-caring'}}]
|
remove_tags = [{'name':'p', 'attrs': {'class': 'keywords'}}, {'name':'div', 'attrs': {'class':'sexy-bookmarks sexy-bookmarks-bg-caring'}}, {'name':'div', 'attrs': {'class':'article-time-and-cat'}}, {'name':'p', 'attrs': {'class':'tags'}}]
|
||||||
remove_tags_after = dict(attrs={'class':'ad-square'})
|
remove_tags_after = dict(attrs={'class':'ad-square'})
|
||||||
keep_only_tags = [dict(name="div", attrs={'id':'articleContent'})]
|
keep_only_tags = [dict(name="div", attrs={'class':'article-text text-small'})]
|
||||||
extra_css = '.topimage {margin-top: 30px}'
|
extra_css = '.topimage {margin-top: 30px}'
|
||||||
|
|
||||||
preprocess_regexps = [
|
preprocess_regexps = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user