remove broken recipe

This commit is contained in:
Tomasz Długosz 2018-10-15 22:37:34 +02:00
parent ca3d690952
commit 3730a74bd1
2 changed files with 0 additions and 42 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

View File

@ -1,42 +0,0 @@
from calibre.web.feeds.news import BasicNewsRecipe
class PolskaTimes(BasicNewsRecipe):
title = u'Polska Times'
__author__ = 'fenuks'
description = u'Internetowe wydanie dziennika ogólnopolskiego Polska The Times. Najświeższe informacje: wydarzenia w kraju i na świecie, reportaże, poradniki, opinie.' # noqa
category = 'newspaper'
language = 'pl'
masthead_url = 'http://s.polskatimes.pl/g/logo_naglowek/polska.gif?17'
oldest_article = 7
encoding = 'iso-8859-2'
max_articles_per_feed = 100
remove_empty_feeds = True
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={
'class': 'czytajDalej'}), dict(attrs={'src': 'http://nm.dz.com.pl/dz.png'})]
feeds = [
(u'Fakty', u'http://polskatimes.feedsportal.com/c/32980/f/533648/index.rss'),
(u'Opinie', u'http://www.polskatimes.pl/rss/opinie.xml'),
(u'Sport', u'http://polskatimes.feedsportal.com/c/32980/f/533649/index.rss'),
(u'Pieni\u0105dze', u'http://polskatimes.feedsportal.com/c/32980/f/533657/index.rss'),
(u'Twoje finanse', u'http://www.polskatimes.pl/rss/twojefinanse.xml'),
(u'Kultura', u'http://polskatimes.feedsportal.com/c/32980/f/533650/index.rss'),
(u'Dodatki', u'http://www.polskatimes.pl/rss/dodatki.xml')]
def print_version(self, url):
return url.replace('artykul', 'drukuj')
def skip_ad_pages(self, soup):
if 'Advertisement' in soup.title:
nexturl = soup.find('a')['href']
return self.index_to_soup(nexturl, raw=True)
def get_cover_url(self):
soup = self.index_to_soup(
'http://www.prasa24.pl/gazeta/metropolia-warszawska/')
self.cover_url = soup.find(id='pojemnik').img['src']
return getattr(self, 'cover_url', self.cover_url)