From 192abda383d3b377bd2b29c04731e0d35b60daa5 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Thu, 19 Sep 2024 18:43:53 +0530 Subject: [PATCH] remove dead recipes These recipes are based on RSS feeds that no longer work. --- recipes/180.recipe | 61 ---------- recipes/24sata.recipe | 68 ----------- recipes/7seri.recipe | 48 -------- recipes/aabenraalokalavisen_dk.recipe | 32 ----- recipes/aarhuslokalavisen_dk.recipe | 32 ----- recipes/aarhusmidtlokalavisen_dk.recipe | 32 ----- recipes/aarhusnordlokalavisen_dk.recipe | 32 ----- recipes/aarhussydlokalavisen_dk.recipe | 32 ----- recipes/aarhusvestlokalavisen_dk.recipe | 32 ----- recipes/abc_py.recipe | 50 -------- recipes/aftonbladet.recipe | 20 --- recipes/ajc.recipe | 134 --------------------- recipes/ajiajin.recipe | 22 ---- recipes/icons/180.png | Bin 1277 -> 0 bytes recipes/icons/24sata.png | Bin 405 -> 0 bytes recipes/icons/7seri.png | Bin 245 -> 0 bytes recipes/icons/aabenraalokalavisen_dk.png | Bin 801 -> 0 bytes recipes/icons/aarhuslokalavisen_dk.png | Bin 801 -> 0 bytes recipes/icons/aarhusmidtlokalavisen_dk.png | Bin 801 -> 0 bytes recipes/icons/aarhusnordlokalavisen_dk.png | Bin 801 -> 0 bytes recipes/icons/aarhussydlokalavisen_dk.png | Bin 801 -> 0 bytes recipes/icons/aarhusvestlokalavisen_dk.png | Bin 801 -> 0 bytes recipes/icons/abc_py.png | Bin 2301 -> 0 bytes recipes/icons/aftonbladet.png | Bin 830 -> 0 bytes recipes/icons/ajc.png | Bin 846 -> 0 bytes recipes/icons/ajiajin.png | Bin 136 -> 0 bytes 26 files changed, 595 deletions(-) delete mode 100644 recipes/180.recipe delete mode 100644 recipes/24sata.recipe delete mode 100644 recipes/7seri.recipe delete mode 100644 recipes/aabenraalokalavisen_dk.recipe delete mode 100644 recipes/aarhuslokalavisen_dk.recipe delete mode 100644 recipes/aarhusmidtlokalavisen_dk.recipe delete mode 100644 recipes/aarhusnordlokalavisen_dk.recipe delete mode 100644 recipes/aarhussydlokalavisen_dk.recipe delete mode 100644 recipes/aarhusvestlokalavisen_dk.recipe delete mode 100644 recipes/abc_py.recipe delete mode 100644 recipes/aftonbladet.recipe delete mode 100644 recipes/ajc.recipe delete mode 100644 recipes/ajiajin.recipe delete mode 100644 recipes/icons/180.png delete mode 100644 recipes/icons/24sata.png delete mode 100644 recipes/icons/7seri.png delete mode 100644 recipes/icons/aabenraalokalavisen_dk.png delete mode 100644 recipes/icons/aarhuslokalavisen_dk.png delete mode 100644 recipes/icons/aarhusmidtlokalavisen_dk.png delete mode 100644 recipes/icons/aarhusnordlokalavisen_dk.png delete mode 100644 recipes/icons/aarhussydlokalavisen_dk.png delete mode 100644 recipes/icons/aarhusvestlokalavisen_dk.png delete mode 100644 recipes/icons/abc_py.png delete mode 100644 recipes/icons/aftonbladet.png delete mode 100644 recipes/icons/ajc.png delete mode 100644 recipes/icons/ajiajin.png diff --git a/recipes/180.recipe b/recipes/180.recipe deleted file mode 100644 index ce7841937759..000000000000 --- a/recipes/180.recipe +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env python -## -# Last Edited: 2018-02-13 Carlos Alves -## - -__license__ = 'GPL v3' -__author__ = '2010, Gustavo Azambuja ' -''' -180.com.uy -''' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class Noticias(BasicNewsRecipe): - title = '180.com.uy' - __author__ = 'Gustavo Azambuja' - description = 'Noticias de Uruguay' - language = 'es_UY' - timefmt = '[%a, %d %b, %Y]' - use_embedded_content = False - recursion = 5 - encoding = 'utf-8' - remove_javascript = True - no_stylesheets = True - - oldest_article = 2 - max_articles_per_feed = 100 - remove_tags_after = dict(name='article') - keep_only_tags = [ - dict(name='div', attrs={'class': 'nota'}), - dict(name='h3',), - dict(name='h4',), - dict(name='article',) - ] - remove_tags = [ - dict(name='div', attrs={'class': 'items'}) - ] - - remove_attributes = ['width', 'height', 'style', 'font', 'color'] - - extra_css = ''' - h1{font-family: Georgia,"Times New Roman",Times,serif} - h3{font-family: Georgia,"Times New Roman",Times,serif} - h2{font-family: Georgia,"Times New Roman",Times,serif} - p{font-family: Verdana,Arial,Helvetica,sans-serif} - body{font-family: Verdana,Arial,Helvetica,sans-serif} - img{margin-bottom: 0.4em; display:block;} - ''' - - feeds = [ - (u'Titulares', u'http://www.180.com.uy/feed.php') - ] - - def get_cover_url(self): - pass - - def preprocess_html(self, soup): - for item in soup.findAll(style=True): - del item['style'] - return soup diff --git a/recipes/24sata.recipe b/recipes/24sata.recipe deleted file mode 100644 index b68f02b25f17..000000000000 --- a/recipes/24sata.recipe +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env python - -__license__ = 'GPL v3' -__copyright__ = '2009, Darko Miletic ' - -''' -24sata.hr -''' - -import re - -from calibre.ebooks.BeautifulSoup import Tag -from calibre.web.feeds.recipes import BasicNewsRecipe - - -def new_tag(soup, name, attrs=()): - impl = getattr(soup, 'new_tag', None) - if impl is not None: - return impl(name, attrs=dict(attrs)) - return Tag(soup, name, attrs=attrs or None) - - -class Cro24Sata(BasicNewsRecipe): - title = '24 Sata - Hr' - __author__ = 'Darko Miletic' - description = "News Portal from Croatia" - publisher = '24sata.hr' - category = 'news, politics, Croatia' - oldest_article = 2 - max_articles_per_feed = 100 - delay = 4 - no_stylesheets = True - encoding = 'utf-8' - use_embedded_content = False - language = 'hr' - - lang = 'hr-HR' - - extra_css = '@font-face {font-family: "serif1";src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf)} body{font-family: serif1, serif} .article_description{font-family: serif1, serif}' # noqa - - conversion_options = { - 'comment': description, 'tags': category, 'publisher': publisher, 'language': lang, 'pretty_print': True - } - - preprocess_regexps = [(re.compile(u'\u0110'), lambda match: u'\u00D0')] - - remove_tags = [ - dict(name=['object', 'link', 'embed']), dict( - name='table', attrs={'class': 'enumbox'}) - ] - - feeds = [(u'Najnovije Vijesti', - u'http://www.24sata.hr/index.php?cmd=show_rss&action=novo')] - - def preprocess_html(self, soup): - soup.html['lang'] = self.lang - mlang = new_tag(soup, 'meta', [ - ("http-equiv", "Content-Language"), ("content", self.lang)]) - mcharset = new_tag(soup, 'meta', [ - ("http-equiv", "Content-Type"), ("content", "text/html; charset=UTF-8")]) - soup.head.insert(0, mlang) - soup.head.insert(1, mcharset) - for item in soup.findAll(style=True): - del item['style'] - return soup - - def print_version(self, url): - return url + '&action=ispis' diff --git a/recipes/7seri.recipe b/recipes/7seri.recipe deleted file mode 100644 index 1632612f40e1..000000000000 --- a/recipes/7seri.recipe +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -__license__ = 'GPL v3' -__copyright__ = u'2011, Silviu Cotoar\u0103' -''' -sapteseri.ro -''' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class SapteSeri(BasicNewsRecipe): - title = u'Sapte Seri' - __author__ = u'Silviu Cotoar\u0103' - description = u'Sapte Seri' - publisher = u'Sapte Seri' - oldest_article = 5 - language = 'ro' - max_articles_per_feed = 100 - no_stylesheets = True - use_embedded_content = False - category = 'Ziare,Oras,Distractie,Fun' - encoding = 'utf-8' - remove_empty_feeds = True - remove_javascript = True - cover_url = 'http://www.sapteseri.ro/Images/logo.jpg' - - conversion_options = { - 'comments': description, 'tags': category, 'language': language, 'publisher': publisher - } - - keep_only_tags = [ - dict(name='h1', attrs={'id': 'title'}), dict(name='div', attrs={'class': 'mt10 mb10'}), dict( - name='div', attrs={'class': 'mb20 mt10'}), dict(name='div', attrs={'class': 'mt5 mb20'}) - ] - - remove_tags = [ - dict(name='div', attrs={'id': ['entityimgworking']}) - ] - - feeds = [ - (u'Ce se intampla azi in Bucuresti', - u'http://www.sapteseri.ro/ro/feed/ce-se-intampla-azi/bucuresti/') - ] - - def preprocess_html(self, soup): - return self.adeify_images(soup) diff --git a/recipes/aabenraalokalavisen_dk.recipe b/recipes/aabenraalokalavisen_dk.recipe deleted file mode 100644 index eef73bf34be7..000000000000 --- a/recipes/aabenraalokalavisen_dk.recipe +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=utf-8 -# https://manual.calibre-ebook.com/news_recipe.html -from __future__ import absolute_import, division, print_function, unicode_literals - -from calibre.web.feeds.news import BasicNewsRecipe - -''' -Lokalavisen Aabenraa -''' - - -class AabenraaLokalavisen_dk(BasicNewsRecipe): - __author__ = 'CoderAllan.github.com' - title = 'Lokalavisen Aabenraa' - description = 'Lokale og regionale nyheder, sport, kultur fra Aabenraa og omegn på aabenraa.lokalavisen.dk' - category = 'newspaper, news, localnews, sport, culture, Denmark' - oldest_article = 7 - max_articles_per_feed = 50 - auto_cleanup = True - language = 'da' - - feeds = [ - ('Seneste nyt fra Lokalavisen Aabenraa', 'http://aabenraa.lokalavisen.dk/section/senestenytrss'), - ('Seneste lokale nyheder fra Lokalavisen Aabenraa', 'http://aabenraa.lokalavisen.dk/section/senestelokalenyhederrss'), - ('Seneste sport fra Lokalavisen Aabenraa', 'http://aabenraa.lokalavisen.dk/section/senestesportrss'), - ('Seneste 112 nyheder fra Lokalavisen Aabenraa', 'http://aabenraa.lokalavisen.dk/section/seneste112rss'), - ('Seneste kultur nyheder fra Lokalavisen Aabenraa', 'http://aabenraa.lokalavisen.dk/section/senestekulturrss'), - ('Seneste læserbreve fra Lokalavisen Aabenraa', 'http://aabenraa.lokalavisen.dk/section/senestelaeserbreverss'), - - ] - diff --git a/recipes/aarhuslokalavisen_dk.recipe b/recipes/aarhuslokalavisen_dk.recipe deleted file mode 100644 index 6641ab24eedc..000000000000 --- a/recipes/aarhuslokalavisen_dk.recipe +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=utf-8 -# https://manual.calibre-ebook.com/news_recipe.html -from __future__ import absolute_import, division, print_function, unicode_literals - -from calibre.web.feeds.news import BasicNewsRecipe - -''' -Lokalavisen Aarhus -''' - - -class AarhusLokalavisen_dk(BasicNewsRecipe): - __author__ = 'CoderAllan.github.com' - title = 'Lokalavisen Aarhus' - description = 'Lokale og regionale nyheder, sport og kultur fra Aarhus Midt, Nord, Vest og Syd på aarhus.lokalavisen.dk' - category = 'newspaper, news, localnews, sport, culture, Denmark' - oldest_article = 7 - max_articles_per_feed = 50 - auto_cleanup = True - language = 'da' - - feeds = [ - ('Seneste nyt fra Lokalavisen Aarhus', 'http://aarhus.lokalavisen.dk/section/senestenytrss'), - ('Seneste lokale nyheder fra Lokalavisen Aarhus', 'http://aarhus.lokalavisen.dk/section/senestelokalenyhederrss'), - ('Seneste sport fra Lokalavisen Aarhus', 'http://aarhus.lokalavisen.dk/section/senestesportrss'), - ('Seneste 112 nyheder fra Lokalavisen Aarhus', 'http://aarhus.lokalavisen.dk/section/seneste112rss'), - ('Seneste kultur nyheder fra Lokalavisen Aarhus', 'http://aarhus.lokalavisen.dk/section/senestekulturrss'), - ('Seneste læserbreve fra Lokalavisen Aarhus', 'http://aarhus.lokalavisen.dk/section/senestelaeserbreverss'), - - ] - diff --git a/recipes/aarhusmidtlokalavisen_dk.recipe b/recipes/aarhusmidtlokalavisen_dk.recipe deleted file mode 100644 index 9487bcef9fe4..000000000000 --- a/recipes/aarhusmidtlokalavisen_dk.recipe +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=utf-8 -# https://manual.calibre-ebook.com/news_recipe.html -from __future__ import absolute_import, division, print_function, unicode_literals - -from calibre.web.feeds.news import BasicNewsRecipe - -''' -Lokalavisen Aarhus Midt -''' - - -class AarhusmidtLokalavisen_dk(BasicNewsRecipe): - __author__ = 'CoderAllan.github.com' - title = 'Lokalavisen Aarhus Midt' - description = 'Lokale og regionale nyheder, sport og kultur fra Aarhus Midt på aarhusmidt.lokalavisen.dk' - category = 'newspaper, news, localnews, sport, culture, Denmark' - oldest_article = 7 - max_articles_per_feed = 50 - auto_cleanup = True - language = 'da' - - feeds = [ - ('Seneste nyt fra Lokalavisen Aarhus Midt', 'http://aarhusmidt.lokalavisen.dk/section/senestenytrss'), - ('Seneste lokale nyheder fra Lokalavisen Aarhus Midt', 'http://aarhusmidt.lokalavisen.dk/section/senestelokalenyhederrss'), - ('Seneste sport fra Lokalavisen Aarhus Midt', 'http://aarhusmidt.lokalavisen.dk/section/senestesportrss'), - ('Seneste 112 nyheder fra Lokalavisen Aarhus Midt', 'http://aarhusmidt.lokalavisen.dk/section/seneste112rss'), - ('Seneste kultur nyheder fra Lokalavisen Aarhus Midt', 'http://aarhusmidt.lokalavisen.dk/section/senestekulturrss'), - ('Seneste læserbreve fra Lokalavisen Aarhus Midt', 'http://aarhusmidt.lokalavisen.dk/section/senestelaeserbreverss'), - - ] - diff --git a/recipes/aarhusnordlokalavisen_dk.recipe b/recipes/aarhusnordlokalavisen_dk.recipe deleted file mode 100644 index 1ff7ce20b7f5..000000000000 --- a/recipes/aarhusnordlokalavisen_dk.recipe +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=utf-8 -# https://manual.calibre-ebook.com/news_recipe.html -from __future__ import absolute_import, division, print_function, unicode_literals - -from calibre.web.feeds.news import BasicNewsRecipe - -''' -Lokalavisen Aarhus Nord -''' - - -class AarhusnordLokalavisen_dk(BasicNewsRecipe): - __author__ = 'CoderAllan.github.com' - title = 'Lokalavisen Aarhus Nord' - description = 'Lokale og regionale nyheder, sport og kultur fra Aarhus Nord på aarhusnord.lokalavisen.dk' - category = 'newspaper, news, localnews, sport, culture, Denmark' - oldest_article = 7 - max_articles_per_feed = 50 - auto_cleanup = True - language = 'da' - - feeds = [ - ('Seneste nyt fra Lokalavisen Aarhus Nord', 'http://aarhusnord.lokalavisen.dk/section/senestenytrss'), - ('Seneste lokale nyheder fra Lokalavisen Aarhus Nord', 'http://aarhusnord.lokalavisen.dk/section/senestelokalenyhederrss'), - ('Seneste sport fra Lokalavisen Aarhus Nord', 'http://aarhusnord.lokalavisen.dk/section/senestesportrss'), - ('Seneste 112 nyheder fra Lokalavisen Aarhus Nord', 'http://aarhusnord.lokalavisen.dk/section/seneste112rss'), - ('Seneste kultur nyheder fra Lokalavisen Aarhus Nord', 'http://aarhusnord.lokalavisen.dk/section/senestekulturrss'), - ('Seneste læserbreve fra Lokalavisen Aarhus Nord', 'http://aarhusnord.lokalavisen.dk/section/senestelaeserbreverss'), - - ] - diff --git a/recipes/aarhussydlokalavisen_dk.recipe b/recipes/aarhussydlokalavisen_dk.recipe deleted file mode 100644 index 9b1ed72280d6..000000000000 --- a/recipes/aarhussydlokalavisen_dk.recipe +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=utf-8 -# https://manual.calibre-ebook.com/news_recipe.html -from __future__ import absolute_import, division, print_function, unicode_literals - -from calibre.web.feeds.news import BasicNewsRecipe - -''' -Lokalavisen Aarhus Syd -''' - - -class AarhussydLokalavisen_dk(BasicNewsRecipe): - __author__ = 'CoderAllan.github.com' - title = 'Lokalavisen Aarhus Syd' - description = 'Lokale og regionale nyheder, sport og kultur fra Aarhus Syd på aarhussyd.lokalavisen.dk' - category = 'newspaper, news, localnews, sport, culture, Denmark' - oldest_article = 7 - max_articles_per_feed = 50 - auto_cleanup = True - language = 'da' - - feeds = [ - ('Seneste nyt fra Lokalavisen Aarhus Syd', 'http://aarhussyd.lokalavisen.dk/section/senestenytrss'), - ('Seneste lokale nyheder fra Lokalavisen Aarhus Syd', 'http://aarhussyd.lokalavisen.dk/section/senestelokalenyhederrss'), - ('Seneste sport fra Lokalavisen Aarhus Syd', 'http://aarhussyd.lokalavisen.dk/section/senestesportrss'), - ('Seneste 112 nyheder fra Lokalavisen Aarhus Syd', 'http://aarhussyd.lokalavisen.dk/section/seneste112rss'), - ('Seneste kultur nyheder fra Lokalavisen Aarhus Syd', 'http://aarhussyd.lokalavisen.dk/section/senestekulturrss'), - ('Seneste læserbreve fra Lokalavisen Aarhus Syd', 'http://aarhussyd.lokalavisen.dk/section/senestelaeserbreverss'), - - ] - diff --git a/recipes/aarhusvestlokalavisen_dk.recipe b/recipes/aarhusvestlokalavisen_dk.recipe deleted file mode 100644 index e51e3b5d254e..000000000000 --- a/recipes/aarhusvestlokalavisen_dk.recipe +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=utf-8 -# https://manual.calibre-ebook.com/news_recipe.html -from __future__ import absolute_import, division, print_function, unicode_literals - -from calibre.web.feeds.news import BasicNewsRecipe - -''' -Lokalavisen Aarhus Ves -''' - - -class AarhusvestLokalavisen_dk(BasicNewsRecipe): - __author__ = 'CoderAllan.github.com' - title = 'Lokalavisen Aarhus Ves' - description = 'Lokale og regionale nyheder, sport og kultur fra Aarhus Vest på aarhusvest.lokalavisen.dk' - category = 'newspaper, news, localnews, sport, culture, Denmark' - oldest_article = 7 - max_articles_per_feed = 50 - auto_cleanup = True - language = 'da' - - feeds = [ - ('Seneste nyt fra Lokalavisen Aarhus Vest', 'http://aarhusvest.lokalavisen.dk/section/senestenytrss'), - ('Seneste lokale nyheder fra Lokalavisen Aarhus Vest', 'http://aarhusvest.lokalavisen.dk/section/senestelokalenyhederrss'), - ('Seneste sport fra Lokalavisen Aarhus Vest', 'http://aarhusvest.lokalavisen.dk/section/senestesportrss'), - ('Seneste 112 nyheder fra Lokalavisen Aarhus Vest', 'http://aarhusvest.lokalavisen.dk/section/seneste112rss'), - ('Seneste kultur nyheder fra Lokalavisen Aarhus Vest', 'http://aarhusvest.lokalavisen.dk/section/senestekulturrss'), - ('Seneste læserbreve fra Lokalavisen Aarhus Vest', 'http://aarhusvest.lokalavisen.dk/section/senestelaeserbreverss'), - - ] - diff --git a/recipes/abc_py.recipe b/recipes/abc_py.recipe deleted file mode 100644 index c89729efdc90..000000000000 --- a/recipes/abc_py.recipe +++ /dev/null @@ -1,50 +0,0 @@ -__license__ = 'GPL v3' -__copyright__ = '2010-2012, Darko Miletic ' -''' -abc.com.py -''' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class ABC_py(BasicNewsRecipe): - title = 'ABC Color' - __author__ = 'Darko Miletic' - description = 'Noticias de Paraguay y el resto del mundo' - publisher = 'ABC' - category = 'news, politics, Paraguay' - oldest_article = 2 - max_articles_per_feed = 200 - no_stylesheets = True - encoding = 'utf8' - use_embedded_content = False - language = 'es_PY' - remove_empty_feeds = True - masthead_url = 'http://www.abc.com.py/plantillas/img/abc-logo.png' - publication_type = 'newspaper' - extra_css = """ - body{font-family: UnitSlabProMedium,"Times New Roman",serif } - img{margin-bottom: 0.4em; display: block;} - """ - - conversion_options = { - 'comment': description, 'tags': category, 'publisher': publisher, 'language': language - } - - remove_tags = [ - dict(name=['form', 'iframe', 'embed', - 'object', 'link', 'base', 'table']), - dict(attrs={'class': ['es-carousel-wrapper']}), - dict(attrs={'id': ['tools', 'article-banner-1']}) - ] - keep_only_tags = [dict(attrs={'id': 'article'})] - - feeds = [ - - (u'Ultimo momento', u'http://www.abc.com.py/rss.xml'), - (u'Nacionales', u'http://www.abc.com.py/nacionales/rss.xml'), - (u'Mundo', u'http://www.abc.com.py/internacionales/rss.xml'), - (u'Deportes', u'http://www.abc.com.py/deportes/rss.xml'), - (u'Espectaculos', u'http://www.abc.com.py/espectaculos/rss.xml'), - (u'TecnoCiencia', u'http://www.abc.com.py/ciencia/rss.xml') - ] diff --git a/recipes/aftonbladet.recipe b/recipes/aftonbladet.recipe deleted file mode 100644 index cabc4499e4c8..000000000000 --- a/recipes/aftonbladet.recipe +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=utf-8 -from calibre.web.feeds.news import BasicNewsRecipe - - -class AdvancedUserRecipe1599499742(BasicNewsRecipe): - title = 'Aftonbladet' - __author__ = 'Jonatan Nyberg' - oldest_article = 7 - max_articles_per_feed = 100 - auto_cleanup = True - language = 'sv' - description = u'Nyheter från Sveriges största nyhetssajt.' - publisher = 'Aftonbladet' - category = 'news' - cover_url = 'https://gfx.aftonbladet-cdn.se/hyper-assets/f684737c60484ef64ab63a9e73a54d8b.jpg' - - feeds = [ - ('Aftonbladet', 'http://www.aftonbladet.se/rss.xml'), - ] diff --git a/recipes/ajc.recipe b/recipes/ajc.recipe deleted file mode 100644 index 19daa6c01fd9..000000000000 --- a/recipes/ajc.recipe +++ /dev/null @@ -1,134 +0,0 @@ -#!/usr/bin/env python -__license__ = 'Creative Commons Attribution 4.0 International License' -__author__ = 'John McDole' -__copyright__ = '' -__version__ = '0.1' -__date__ = '2015/01/10' -__docformat__ = 'restructuredtext en' - -import datetime -import re - -from calibre.ebooks.BeautifulSoup import Tag -from calibre.web.feeds.news import BasicNewsRecipe - - -def new_tag(soup, name, attrs=()): - impl = getattr(soup, 'new_tag', None) - if impl is not None: - return impl(name, attrs=dict(attrs)) - return Tag(soup, name, attrs=attrs or None) - - -class AdvancedUserRecipe1282101454(BasicNewsRecipe): - now = datetime.datetime.now() - title = 'The AJC' - timefmt = ' [%a,%d %B %Y %I:%M %p]' - __author__ = 'John McDole' - language = 'en' - description = 'The Atlanta Journal-Constitution; Metro Atlanta & Georgia' - publisher = 'The Atlanta Journal-Constitution' - publication_type = 'newspaper' - category = 'news, politics, USA' - oldest_article = 1 - max_articles_per_feed = 100 - no_stylesheets = True - - # The AJC lists identical articles in multiple feeds; this removes them - # based on their URL - ignore_duplicate_articles = {'title', 'url'} - - # And this says "Hey, AJC, different feeds should mean something!" - remove_empty_feeds = True - - # Sets whether a feed has full articles embedded in it. The AJC feeds do - # not. - use_embedded_content = False - - masthead_url = 'http://gawand.org/wp-content/uploads/2010/06/ajc-logo.gif' - - # Pick your poison. Business seems to be mostly cross-linked articles. Premium and cross-linked - # articles will be dropped. - feeds = [ - ('Breaking News', 'http://www.ajc.com/list/rss/online/ajc-auto-list-iphone-topnews/aFKq/'), - ('Metro and Georgia', - 'http://www.ajc.com/list/rss/news/local/news-georgia-and-region/aCxP/'), - ('Business', 'http://www.ajc.com/feeds/categories/business/'), - ('Health', 'http://www.ajc.com/feeds/categories/health/'), - # ('Braves', 'http://www.ajc.com/list/rss/sports/baseball/atlanta-braves-news/aGpN/'), - # ('Falcons', 'http://www.ajc.com/list/rss/sports/football/falcons-news/aGK4/'), - # ('Georgia Tech Yellow Jackets', 'http://www.ajc.com/list/rss/sports/college/georgia-tech-headlines/aGK6/'), - ] - - headline_reg_exp = '^.*cm-story-headline.*$' - story_body_reg_exp = '^.*cm-story-body.*$' - author_reg_exp = '^.*cm-story-author.*$' - - keep_only_tags = [ - dict(name='div', attrs={'class': re.compile( - headline_reg_exp, re.IGNORECASE)}), - dict(name='div', attrs={'class': 'cm-story-meta'}), - dict(name='div', attrs={'class': re.compile( - author_reg_exp, re.IGNORECASE)}), - dict(name='meta', attrs={'name': 'description'}), - dict(name='div', attrs={'class': re.compile( - story_body_reg_exp, re.IGNORECASE)}), - ] - - premium_reg_exp = '^.*cmPremiumContent.*$' - footer_reg_exp = '^.*cm-story-footer.*$' - - remove_tags = [ - dict(name='div', attrs={'class': re.compile( - footer_reg_exp, re.IGNORECASE)}), - dict(name='div', attrs={'class': 'cm-inline-related-group'}) - ] - - extra_css = 'body { font-family: verdana, helvetica, sans-serif; } \ - .cm-story-headline h1 { text-align: center; font-size: 175%; font-weight: bold; } \ - .cm-story-meta { font-size: 80%; } \ - .cm-related-caption, .cmPhotoImageAttribution, img { display: block; font-size: 75%; font-style: italic; text-align: center; margin: 5px auto;} \ - .cm-story-author { display: block; font-size: 80%; font-style: italic; }' - - # I would love to remove these completely from the finished product, but I can't see how at the momemnt. - # Retuning "None" from preprocess_html(soup) as suggested in mobileread - # forums leads to errors. - def preprocess_html(self, soup): - premium = soup.find('div', attrs={'class': re.compile( - self.premium_reg_exp, re.IGNORECASE)}) - if premium: - return None - crosslink = soup.find('a', attrs={'class': 'cm-feed-story-more-link'}) - if crosslink: - return None - return soup - - def populate_article_metadata(self, article, soup, first): - for meta in soup.findAll('meta', attrs={'name': 'description'}): - article.text_summary = meta['content'] - article.summary = meta['content'] - - lead = soup.find('div', attrs={'class': 'cm-story-photo'}) - if lead: - lead = lead.find('img') - else: - lead = soup.find('img') - if lead: - self.add_toc_thumbnail(article, lead['src']) - names = '' - comma = '' - for div in soup.findAll('div', attrs={'class': re.compile(self.author_reg_exp, re.IGNORECASE)}): - div.extract() - for auth in div.findAll('a'): - if auth.get('class') == 'cm-source-image': - continue - names = names + comma + auth.contents[0] - comma = ', ' - article.author = names - if len(names) > 0: - tag = new_tag(soup, 'div', [('class', 'cm-story-author')]) - tag.append("by: ") - tag.append(names) - meta = soup.find('div', attrs={'class': 'cm-story-meta'}) - meta_idx = meta.parent.contents.index(meta) - meta.parent.insert(meta_idx + 1, tag) diff --git a/recipes/ajiajin.recipe b/recipes/ajiajin.recipe deleted file mode 100644 index 4bf89af41264..000000000000 --- a/recipes/ajiajin.recipe +++ /dev/null @@ -1,22 +0,0 @@ -__license__ = 'GPL v3' -__copyright__ = '2010, Hiroshi Miura ' -''' -ajiajin.com/blog -''' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class AjiajinBlog(BasicNewsRecipe): - title = u'Ajiajin blog' - __author__ = 'Hiroshi Miura' - oldest_article = 5 - publication_type = 'blog' - max_articles_per_feed = 100 - description = 'The next generation internet trends in Japan and Asia' - publisher = '' - category = 'internet, asia, japan' - language = 'en' - encoding = 'utf-8' - - feeds = [(u'blog', u'http://feeds.feedburner.com/Asiajin')] diff --git a/recipes/icons/180.png b/recipes/icons/180.png deleted file mode 100644 index 2e8da5b5a8ec0c29c006e2ce6f880f94c96a2622..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1277 zcmV!Wd=d*LnDTh?;RGt63xiy|`+xA=Awr$(CZJTGC`(-Ed>S5OCs;+-# z(&>EtHS$wJ>=+^TO6?xp!4wBl;$Q*DL4qOoQ{(|u9TKXM$4hI`51}80Y2-;|g7v## zgQ@5$t8t*|IQBjI^pXTV@=(4wwmnO1fo?vSFOIHF;S*DA^aW*WZ{?d);)pdz29?jZ z4AwNv*69m4_{_RAJ~>CHuW&3#P5y|!xIB@MI9@C+H?L3MG}$uuLLG>;*i}krS9j(O zje|x(qdU9PsKQ$GGooZimRPhRk&lwkrqhbg3*>UD;xtpykdbaC;5!9bM_Cv!Yp- z4QYJb@?<_@Ofbs?@Mj3590X__xh{oogsxtl%$FR<6X(~b@XZ7Q<5vz9h>Q6;>90K4RKNiAAK(jWDnfx2S;sQL}ls55L%f;F8$f;IBco*c0khph~Ik3L$y zPo-ywKl40QqWwEAl%)`}c%Tl5&V@jxM6mSrX?(YQ_7%kGaDh18&zJcr23%z1Qt|9e zAe~%k-6LQLQD5tdWr@580PJbV%|b-+nM#P00^xhSP<)%E)7Ppo005~b04Y-=SSG0a zs-TupXtYAx;oFN?yEG@7H&xy8I2>Q;=gmB-rcCXX>ZEFG#hMh}|Aqhd#M);6)$7P)av<))~Jg~{SCV7rB?OnJ2wO1D6j+hNhTqFg>l-tHTd;t0oK&|ALAsV#127G3h~crmNgb+T z!2A%cX26XKDo`U2Bl54&lC{9z9PA&WqD9*pY)KXBa15>Iz}goBeVMl<13ZIA5E z7DsVu?UWai>@K3xa=jjvVpj)MB(LFPg+?)YtA1Bw+M%yE^+H5nZb}#P(G6;^s&wTX zt?K|kPeC75CKact^?*@J8Sip)0H7{v+g8nVw_g+Vt}m3{*sO7B3Zy3rJ+mj7<()iKZ< nAmSEQ9V@{S;!p>pU=#oVe|DR7YjCk<00000NkvXXu0mjf>K$Zq diff --git a/recipes/icons/24sata.png b/recipes/icons/24sata.png deleted file mode 100644 index d85f93546c1e1800b817f618dcdf365f94478b5a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 405 zcmV;G0c!q{Xq7k%JNfi4VT2kf84zT6#aJP z@-1iAt2#P=K7Ir_?7;r#?d`x|0J6WFJn_7(4XWX3bqz@9%;`(=@<5;6Pe}Za4g7xj z3aa7r;lm)$efaR}<;&mi-~Idf^XJ2dk8<*W=s{}w=OafTo_Ua&3DxlZ;w7N!->+Z8 z(TANofuRJn?IZ)ki>@x9$it!ngdd1UgHr?qAR diff --git a/recipes/icons/7seri.png b/recipes/icons/7seri.png deleted file mode 100644 index a296733d8564fea81b23ebfe1dacebbb14246b87..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 245 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!aez;VE09)EQek0Z`D0{qhKc15 z5dHh}CoN?T6N?ED8JYYE3OQqBA|fX8XV#oApT2~Ih4co0ss(CeED7=pW^j0RBMrzY z@N{tuskjx|(<*wvf#c|ph}duQx1Cr$calQM8RG+I-o3Wy)4td#acal%bvfYb(I1GN6#U9*Ra9v>8+NuAwcX>MH$SZ385d9=9mo)L= nyg-{LYEGZt2K;?EmdAg2pJ4kv>DYmLC|x#>I*FbVwbW38eN z{}}HqGXVG9bP8yv2`_}&en372$`O%T%-WXzshDy#9J8(lVwb!hIy*aA|EvQP_<9Nj z4D$y9&IRoF^y^rAp?Da`KKf-lgTZg|KuHDrPRJX$f%|GA1)~lysy=o#>$;D!& zbU2pY48&o1H(0ty;+s{P*mK1MHGmR4AKMq&4LOE`E%Ag7=d z*A=bs;SWK;?EmdAg2pJ4kv>DYmLC|x#>I*FbVwbW38eN z{}}HqGXVG9bP8yv2`_}&en372$`O%T%-WXzshDy#9J8(lVwb!hIy*aA|EvQP_<9Nj z4D$y9&IRoF^y^rAp?Da`KKf-lgTZg|KuHDrPRJX$f%|GA1)~lysy=o#>$;D!& zbU2pY48&o1H(0ty;+s{P*mK1MHGmR4AKMq&4LOE`E%Ag7=d z*A=bs;SWK;?EmdAg2pJ4kv>DYmLC|x#>I*FbVwbW38eN z{}}HqGXVG9bP8yv2`_}&en372$`O%T%-WXzshDy#9J8(lVwb!hIy*aA|EvQP_<9Nj z4D$y9&IRoF^y^rAp?Da`KKf-lgTZg|KuHDrPRJX$f%|GA1)~lysy=o#>$;D!& zbU2pY48&o1H(0ty;+s{P*mK1MHGmR4AKMq&4LOE`E%Ag7=d z*A=bs;SWK;?EmdAg2pJ4kv>DYmLC|x#>I*FbVwbW38eN z{}}HqGXVG9bP8y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?rVHGMp1Y$uebr-gUk|Pyn(_s8$6L;^~#XrLYSKg)2zWx$ANe^0>t$GkKUvNnVUE zM6w|Sn`dUaZ8MWApb2PkZfYt*l$sF$L>o8e*oqo3u(p)sOOC~ZGwtlFwJm4!455vC zq|$Mol&`);1J5Cn&@Oq4_u#t&><$>@AW5i} z)=5#i-Jc<P)+O}=mwr$(CZQHhO+qP|+*_=(=H0^1B|D(;!Q+!|Y_L-w8IMlz2Oq6s% z7|>Nz?Yk$1n>|(alO_VJTt<^1E+FmgBm#ld+niZ-pBWJ&02;mj{b#=KC@^fyKtOz< z8QA@Aqrq%@fsKn*pDDSr@@#BufmqaEkP;m<5$GGv$O$okwLmz;R2TNbM66OLU`$^B%5vJCLSIsW{E)&d8%4gMrT5Fv@HzA2D6aRQ@B8aFJG?Hy96(x3_ui!T~k>g9z>@aQ`gej#W&S z45mN&g81Z0;OX5n9CUg&V5uU^wWGZD?Ga$WfGRAT7SNO^Wb6A%lpqolafs-a&$sOb z!UhYDYn5bI`+ z<&d9G0fPpS!BolR2hQwq3VrTI;2BZJjsUe=bevQ2ZQ^6H5~*KZlYX!~*U^vo zY$6bnI4wPVm=61kfK+tiKKF1%l?5-e!b<{Dsff4s3$cjY-XI+DXSO)xY#8tZ6^7M{ zsz=u=sht`q%y3;(|L0vTgZ~4C2i^ez0zxrC0zz>Eg-3hC0KFZOV07*qo IM6N<$g10w?8UO$Q diff --git a/recipes/icons/ajc.png b/recipes/icons/ajc.png deleted file mode 100644 index ac4fcc76d0411ae0f55ab7f9dd24de0c516d8842..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 846 zcmV-U1F`&xP) z2a5H>M+ zasmq%rl2S$B*{crvU1_6&JQH}N6u}v_H`cBZWAdai4+zLl$Tl9zM~IALoP201`S>k zqIV(cq?lr!M=}mIIX;h$!U7EezYb9}P*GvSvWJjo>eM9s^t((2-eMiag*w91 zeSJ7}Y7C>JSxlRr#J+v~aNQiD(G&&-GH5$Hid$|u2wAqUjHX*s z?u@fVOB>v5E{Bt6MzC>n1HSySEgzbgJ}rs8d;cpK9(K{zHi|oLKZK$}1JOtlvg%B* z$Dcpm3*ybUj?z|XXlWh>^^MM&mEr|C`l6~1cGKwc%$}XX%P$|}pXV-X=wN}06b1nUET!0*MKDR`@l=&3ddT!G<6Zl{$>9BR6%J?ygpyz@fcKOfJQ~9PlG~X zQJ`>${tH>V*R89&l4N<$Ve#Vh1!2j4P%N=dh_X2@DyAzaW=2x1akav3sERnNN%nvL Y1Q!2Vkr24ck^lez07*qoM6N<$f~LBsv;Y7A diff --git a/recipes/icons/ajiajin.png b/recipes/icons/ajiajin.png deleted file mode 100644 index 3a9f3a26e733c367f6b557dae022c40110506a97..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnH3?%tPCZz)@&H$efS0J6hz;J+pLCT`w7La4* z>Eak75uTiIfFWk}fdoc7wt%Zl>sSSzT1YyyI`De%=y4=73MDgUGh{P}*Ri$f`AqIC e