mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
remove recipes for not updated pages
This commit is contained in:
parent
a629a69c6e
commit
712cd082e8
@ -1,31 +0,0 @@
|
|||||||
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
|
||||||
|
|
||||||
|
|
||||||
class TVPINFO(BasicNewsRecipe):
|
|
||||||
title = u'TVP.INFO'
|
|
||||||
__author__ = 'fenuks'
|
|
||||||
description = u'Serwis informacyjny TVP.INFO'
|
|
||||||
category = 'news'
|
|
||||||
language = 'pl'
|
|
||||||
cover_url = 'http://s.v3.tvp.pl/files/tvp-info/gfx/logo.png'
|
|
||||||
oldest_article = 7
|
|
||||||
max_articles_per_feed = 100
|
|
||||||
no_stylesheets = True
|
|
||||||
remove_empty_feeds = True
|
|
||||||
remove_javascript = True
|
|
||||||
use_embedded_content = False
|
|
||||||
ignore_duplicate_articles = {'title', 'url'}
|
|
||||||
keep_only_tags = [dict(id='contentNews')]
|
|
||||||
remove_tags = [dict(attrs={'class': [
|
|
||||||
'toolbox', 'modulBox read', 'modulBox social', 'videoPlayerBox']}), dict(id='belka')]
|
|
||||||
feeds = [
|
|
||||||
(u'Wiadomo\u015bci', u'http://tvp.info/informacje?xslt=tvp-info/news/rss.xslt&src_id=191865'),
|
|
||||||
(u'\u015awiat', u'http://tvp.info/informacje/swiat?xslt=tvp-info/news/rss.xslt&src_id=191867'),
|
|
||||||
(u'Biznes', u'http://tvp.info/informacje/biznes?xslt=tvp-info/news/rss.xslt&src_id=191868'),
|
|
||||||
(u'Nauka', u'http://tvp.info/informacje/nauka?xslt=tvp-info/news/rss.xslt&src_id=191870'),
|
|
||||||
(u'Kultura', u'http://tvp.info/informacje/kultura?xslt=tvp-info/news/rss.xslt&src_id=191869'),
|
|
||||||
(u'Rozmaito\u015bci', u'http://tvp.info/informacje/rozmaitosci?xslt=tvp-info/news/rss.xslt&src_id=191872'),
|
|
||||||
(u'Opinie', u'http://tvp.info/opinie?xslt=tvp-info/news/rss.xslt&src_id=191875'),
|
|
||||||
(u'Komentarze', u'http://tvp.info/opinie/komentarze?xslt=tvp-info/news/rss.xslt&src_id=238200'),
|
|
||||||
(u'Wywiady', u'http://tvp.info/opinie/wywiady?xslt=tvp-info/news/rss.xslt&src_id=236644')]
|
|
@ -1,25 +0,0 @@
|
|||||||
import re
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
|
||||||
|
|
||||||
|
|
||||||
class UbuntuPomoc(BasicNewsRecipe):
|
|
||||||
title = u'Ubuntu-pomoc.org'
|
|
||||||
__author__ = 'fenuks'
|
|
||||||
description = u'Strona poświęcona systemowi Ubuntu Linux. Znajdziesz tutaj przydatne i sprawdzone poradniki oraz sposoby rozwiązywania wielu popularnych problemów. Ten blog rozwiąże każdy Twój problem - jeśli nie teraz, to wkrótce! :)' # noqa
|
|
||||||
category = 'Linux, Ubuntu, open source'
|
|
||||||
language = 'pl'
|
|
||||||
cover_url = 'http://www.ubuntu-pomoc.org/grafika/ubuntupomoc.png'
|
|
||||||
preprocess_regexps = [(re.compile(
|
|
||||||
r'<div class="ciekawostka">.+', re.IGNORECASE | re.DOTALL), lambda m: '')]
|
|
||||||
oldest_article = 7
|
|
||||||
max_articles_per_feed = 100
|
|
||||||
no_stylesheets = True
|
|
||||||
remove_javascript = True
|
|
||||||
remove_empty_feeds = True
|
|
||||||
use_embedded_content = False
|
|
||||||
remove_attrs = ['style']
|
|
||||||
keep_only_tags = [dict(name='article')]
|
|
||||||
remove_tags = [dict(
|
|
||||||
attrs={'class': ['yarpp-related', 'youtube_sc', 'share']}), dict(name='footer')]
|
|
||||||
feeds = [(u'Ca\u0142o\u015b\u0107', u'http://feeds.feedburner.com/Ubuntu-Pomoc'),
|
|
||||||
]
|
|
Loading…
x
Reference in New Issue
Block a user