This commit is contained in:
Kovid Goyal 2016-10-11 09:35:04 +05:30
commit 8fec944063
3 changed files with 6 additions and 5 deletions

View File

@ -30,7 +30,7 @@ class biweekly(BasicNewsRecipe):
browser.open('http://www.biweekly.pl/')
# find the link
epublink = browser.find_link(text_regex=re.compile('ePUB VERSION'))
epublink = browser.find_link(text_regex=re.compile('EPUB'))
# download ebook
self.report_progress(0, _('Downloading ePUB'))

View File

@ -32,7 +32,7 @@ class dwutygodnik(BasicNewsRecipe):
browser.open('http://www.dwutygodnik.com/')
# find the link
epublink = browser.find_link(text_regex=re.compile('Wersja ePub'))
epublink = browser.find_link(text_regex=re.compile('Wydanie EPUB'))
# download ebook
self.report_progress(0, _('Downloading ePUB'))

View File

@ -7,7 +7,6 @@ class DziennikBaltycki(BasicNewsRecipe):
description = u'Gazeta Regionalna Dziennik Bałtycki. Najnowsze Wiadomości Trójmiasto i Wiadomości Pomorskie. Czytaj!'
category = 'newspaper'
language = 'pl'
encoding = 'iso-8859-2'
masthead_url = 'http://s.polskatimes.pl/g/logo_naglowek/dziennikbaltycki.png?24'
oldest_article = 7
max_articles_per_feed = 100
@ -15,8 +14,10 @@ class DziennikBaltycki(BasicNewsRecipe):
no_stylesheets = True
use_embedded_content = False
ignore_duplicate_articles = {'title', 'url'}
remove_tags_after = dict(attrs={'src': 'http://nm.dz.com.pl/dz.png'})
remove_tags = [dict(id='mat-podobne'), dict(name='a', attrs={
keep_only_tags = [dict(name='section', attrs={'class': 'zajawka'}),
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'})]
feeds = [