From c581643026afa38faf0c8325ba8f9e8966e0fc9e Mon Sep 17 00:00:00 2001 From: Jony <23194385+jony0008@users.noreply.github.com> Date: Sun, 29 Mar 2020 19:31:12 +0200 Subject: [PATCH] Delete noticias_r7.recipe --- recipes/noticias_r7.recipe | 43 -------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 recipes/noticias_r7.recipe diff --git a/recipes/noticias_r7.recipe b/recipes/noticias_r7.recipe deleted file mode 100644 index 3bf88a87f1..0000000000 --- a/recipes/noticias_r7.recipe +++ /dev/null @@ -1,43 +0,0 @@ -import re -from calibre.web.feeds.news import BasicNewsRecipe - - -class PortalR7(BasicNewsRecipe): - title = 'Noticias R7' - __author__ = 'Diniz Bortolotto' - description = 'Noticias Portal R7' - oldest_article = 2 - max_articles_per_feed = 20 - encoding = 'utf8' - publisher = 'Rede Record' - category = 'news, Brazil' - language = 'pt_BR' - publication_type = 'newsportal' - use_embedded_content = False - no_stylesheets = True - remove_javascript = True - remove_attributes = ['style'] - - feeds = [ - (u'Brasil', u'http://www.r7.com/data/rss/brasil.xml'), - (u'Economia', u'http://www.r7.com/data/rss/economia.xml'), - (u'Internacional', - u'http://www.r7.com/data/rss/internacional.xml'), - (u'Tecnologia e Ci\xeancia', - u'http://www.r7.com/data/rss/tecnologiaCiencia.xml') - ] - reverse_article_order = True - - keep_only_tags = [dict(name='div', attrs={'class': 'materia'})] - remove_tags = [ - dict(id=['espalhe', 'report-erro']), - dict(name='ul', attrs={'class': 'controles'}), - dict(name='ul', attrs={'class': 'relacionados'}), - dict(name='div', attrs={'class': 'materia_banner'}), - dict(name='div', attrs={'class': 'materia_controles'}) - ] - - preprocess_regexps = [ - (re.compile(r'
.*
', re.DOTALL | re.IGNORECASE), - lambda match: '
') - ]