mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
recipes: slightly improve DziennikBaltycki
This commit is contained in:
parent
53d1ebb3b8
commit
c18552a30e
@ -7,7 +7,6 @@ class DziennikBaltycki(BasicNewsRecipe):
|
|||||||
description = u'Gazeta Regionalna Dziennik Bałtycki. Najnowsze Wiadomości Trójmiasto i Wiadomości Pomorskie. Czytaj!'
|
description = u'Gazeta Regionalna Dziennik Bałtycki. Najnowsze Wiadomości Trójmiasto i Wiadomości Pomorskie. Czytaj!'
|
||||||
category = 'newspaper'
|
category = 'newspaper'
|
||||||
language = 'pl'
|
language = 'pl'
|
||||||
encoding = 'iso-8859-2'
|
|
||||||
masthead_url = 'http://s.polskatimes.pl/g/logo_naglowek/dziennikbaltycki.png?24'
|
masthead_url = 'http://s.polskatimes.pl/g/logo_naglowek/dziennikbaltycki.png?24'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
@ -15,8 +14,10 @@ class DziennikBaltycki(BasicNewsRecipe):
|
|||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
ignore_duplicate_articles = {'title', 'url'}
|
ignore_duplicate_articles = {'title', 'url'}
|
||||||
remove_tags_after = dict(attrs={'src': 'http://nm.dz.com.pl/dz.png'})
|
keep_only_tags = [dict(name='section', attrs={'class': 'zajawka'}),
|
||||||
remove_tags = [dict(id='mat-podobne'), dict(name='a', attrs={
|
dict(name='section', attrs={'id': 'tresc'})
|
||||||
|
]
|
||||||
|
remove_tags = [dict(name='div', attrs={'class':['materialyZKategorii','materialyPodobne']}), dict(name='a', attrs={
|
||||||
'class': 'czytajDalej'}), dict(attrs={'src': 'http://nm.dz.com.pl/dz.png'})]
|
'class': 'czytajDalej'}), dict(attrs={'src': 'http://nm.dz.com.pl/dz.png'})]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user