From c8b372bb2c7cbd1da337a74f05b31c450a0e94ad Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Mar 2020 19:58:17 +0530 Subject: [PATCH] remove non-working recipes --- recipes/h1.recipe | 48 ------------------------- recipes/h2.recipe | 21 ----------- recipes/h7_tumspor.recipe | 46 ------------------------ recipes/haber7.recipe | 55 ----------------------------- recipes/hallo_assen.recipe | 39 -------------------- recipes/hartford_courant.recipe | 47 ------------------------ recipes/icons/h2.png | Bin 580 -> 0 bytes recipes/icons/hartford_courant.png | Bin 508 -> 0 bytes 8 files changed, 256 deletions(-) delete mode 100644 recipes/h1.recipe delete mode 100644 recipes/h2.recipe delete mode 100644 recipes/h7_tumspor.recipe delete mode 100644 recipes/haber7.recipe delete mode 100644 recipes/hallo_assen.recipe delete mode 100644 recipes/hartford_courant.recipe delete mode 100644 recipes/icons/h2.png delete mode 100644 recipes/icons/hartford_courant.png diff --git a/recipes/h1.recipe b/recipes/h1.recipe deleted file mode 100644 index 86d1b2e6c0..0000000000 --- a/recipes/h1.recipe +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -import re -from calibre.web.feeds.recipes import BasicNewsRecipe - - -class hu168ora(BasicNewsRecipe): - title = u'168 óra' - __author__ = u'István Papp' - description = u'A 168 óra friss hírei' - timefmt = ' [%Y. %b. %d., %a.]' - oldest_article = 7 - language = 'hu' - - max_articles_per_feed = 100 - no_stylesheets = True - use_embedded_content = False - encoding = 'utf8' - publisher = u'Telegráf Kiadó' - category = u'news, hírek, 168' - extra_css = 'body{ font-family: Verdana,Helvetica,Arial,sans-serif }' - preprocess_regexps = [(re.compile(r'', re.DOTALL), lambda m: '')] - keep_only_tags = [ - dict(id='cikk_fejlec'), dict(id='cikk_torzs') - ] - remove_tags = [ - dict(id='box_toolbar'), dict(id='text') - ] - remove_javascript = True - remove_empty_feeds = True - - feeds = [ - - (u'Itthon', u'http://www.168ora.hu/static/rss/cikkek_itthon.xml'), - (u'Glóbusz', u'http://www.168ora.hu/static/rss/cikkek_globusz.xml'), - (u'Punch', u'http://www.168ora.hu/static/rss/cikkek_punch.xml'), - (u'Arte', u'http://www.168ora.hu/static/rss/cikkek_arte.xml'), - (u'Buxa', u'http://www.168ora.hu/static/rss/cikkek_buxa.xml'), - (u'Sebesség', u'http://www.168ora.hu/static/rss/cikkek_sebesseg.xml'), - (u'Tudás', u'http://www.168ora.hu/static/rss/cikkek_tudas.xml'), - (u'Sport', u'http://www.168ora.hu/static/rss/cikkek_sport.xml'), - (u'Vélemény', u'http://www.168ora.hu/static/rss/cikkek_velemeny.xml'), - (u'Dolce Vita', u'http://www.168ora.hu/static/rss/cikkek_dolcevita.xml'), - # (u'Rádió', u'http://www.168ora.hu/static/rss/radio.xml') - ] - - def print_version(self, url): - url += '?print=1' - return url diff --git a/recipes/h2.recipe b/recipes/h2.recipe deleted file mode 100644 index 03bf955f70..0000000000 --- a/recipes/h2.recipe +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python2 -# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai -from __future__ import with_statement - -__license__ = 'GPL v3' -__copyright__ = '2009, Kovid Goyal ' -__docformat__ = 'restructuredtext en' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class ATV(BasicNewsRecipe): - title = u'ATV' - oldest_article = 5 - max_articles_per_feed = 50 - language = 'hu' - - __author__ = 'Ezmegaz' - - feeds = [(u'H\xedrek', u'http://atv.hu/rss/1'), (u'Cikkek', - u'http://atv.hu/rss/2')] diff --git a/recipes/h7_tumspor.recipe b/recipes/h7_tumspor.recipe deleted file mode 100644 index 359ac20231..0000000000 --- a/recipes/h7_tumspor.recipe +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- - -from calibre.web.feeds.news import BasicNewsRecipe - - -class Haber7TS (BasicNewsRecipe): - - title = u'H7 TÜMSPOR' - __author__ = u'thomass' - description = ' Haber 7 TÜMSPOR sitesinden tüm branşlarda spor haberleri ' - oldest_article = 2 - max_articles_per_feed = 100 - no_stylesheets = True - encoding = 'ISO 8859-9' - publisher = 'thomass' - category = 'güncel, haber, türkçe,spor,futbol' - language = 'tr' - publication_type = 'newspaper' - - conversion_options = { - 'tags': category, 'language': language, 'publisher': publisher, 'linearize_tables': True - } - extra_css = ' #newsheadcon h1{font-weight: bold; font-size: 18px;color:#0000FF} ' - keep_only_tags = [ - dict(name='div', attrs={'class': ['intNews', 'leftmidmerge']})] - remove_tags = [dict(name='div', attrs={'id': ['blocktitle', 'banner46860body']}), dict(name='div', attrs={'class': ['Breadcrumb', 'shr', 'mobile/home.jpg', 'etiket', 'yorumYazNew', 'shr', 'y-list', 'banner', 'lftBannerShowcase', 'comments', 'interNews', 'lftBanner', 'midblock', 'rightblock', 'comnum', 'commentcon', ]}), dict(name='a', attrs={'class': ['saveto', 'sendto', 'comlink', 'newsshare', ]}), dict(name='iframe', attrs={'name': ['frm111', 'frm107']}), dict(name='ul', attrs={'class': ['nocPagi', 'leftmidmerge']})] # noqa - cover_img_url = 'http://image.tumspor.com/v2/images/tasarim/images/logo.jpg' - masthead_url = 'http://image.tumspor.com/v2/images/tasarim/images/logo.jpg' - remove_empty_feeds = True - - feeds = [ - (u'Futbol', u'http://open.dapper.net/services/h7tsfutbol'), - (u'Basketbol', u'http://open.dapper.net/services/h7tsbasket'), - (u'Tenis', u'http://open.dapper.net/services/h7tstenis'), - (u'NBA', u'http://open.dapper.net/services/h7tsnba'), - (u'Diğer Sporlar', u'http://open.dapper.net/services/h7tsdiger'), - (u'Yazarlar & Magazin', - u'http://open.dapper.net/services/h7tsyazarmagazin'), - ] - - def preprocess_html(self, soup): - for alink in soup.findAll('a'): - if alink.string is not None: - tstr = alink.string - alink.replaceWith(tstr) - return soup diff --git a/recipes/haber7.recipe b/recipes/haber7.recipe deleted file mode 100644 index b373e7061f..0000000000 --- a/recipes/haber7.recipe +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- - -from calibre.web.feeds.news import BasicNewsRecipe - - -class Haber7 (BasicNewsRecipe): - - title = u'Haber 7' - __author__ = u'thomass' - description = ' Haber 7 sitesinden haberler ' - oldest_article = 2 - max_articles_per_feed = 100 - no_stylesheets = True - encoding = 'ISO 8859-9' - publisher = 'thomass' - category = 'güncel, haber, türkçe' - language = 'tr' - publication_type = 'newspaper' - - conversion_options = { - 'tags': category, 'language': language, 'publisher': publisher, 'linearize_tables': True - } - extra_css = 'body{ font-size: 12px}h2{font-weight: bold; font-size: 18px;color:#0000FF} #newsheadcon h1{font-weight: bold; font-size: 18px;color:#0000FF}' - - keep_only_tags = [ - dict(name='div', attrs={'class': ['intNews', 'leftmidmerge']})] - remove_tags = [dict(name='div', attrs={'id': ['blocktitle', 'banner46860body']}), dict(name='div', attrs={'class': ['Breadcrumb', 'shr', 'mobile/home.jpg', 'etiket', 'yorumYazNew', 'shr', 'y-list', 'banner', 'lftBannerShowcase', 'comments', 'interNews', 'lftBanner', 'midblock', 'rightblock', 'comnum', 'commentcon', ]}), dict(name='a', attrs={'class': ['saveto', 'sendto', 'comlink', 'newsshare', ]}), dict(name='iframe', attrs={'name': ['frm111', 'frm107']}), dict(name='ul', attrs={'class': ['nocPagi', 'leftmidmerge']})] # noqa - - cover_img_url = 'http://dl.dropbox.com/u/39726752/haber7.JPG' - masthead_url = 'http://dl.dropbox.com/u/39726752/haber7.JPG' - remove_empty_feeds = True - - feeds = [ - (u'Siyaset', u'http://open.dapper.net/services/h7siyaset'), - (u'Güncel', u'http://open.dapper.net/services/h7guncel'), - (u'Yaşam', u'http://open.dapper.net/services/h7yasam'), - (u'Ekonomi', u'http://open.dapper.net/services/h7ekonomi'), - (u'3. Sayfa', u'http://open.dapper.net/services/h73sayfa'), - (u'Dünya', u'http://open.dapper.net/services/h7dunya'), - (u'Medya', u'http://open.dapper.net/services/h7medya'), - - (u'Yazarlar', u'http://open.dapper.net/services/h7yazarlar'), - (u'Bilim', u'http://open.dapper.net/services/h7bilim'), - (u'Eğitim', u'http://open.dapper.net/services/h7egitim'), - (u'Spor', u'http://open.dapper.net/services/h7sporv3'), - - - ] - - def preprocess_html(self, soup): - for alink in soup.findAll('a'): - if alink.string is not None: - tstr = alink.string - alink.replaceWith(tstr) - return soup diff --git a/recipes/hallo_assen.recipe b/recipes/hallo_assen.recipe deleted file mode 100644 index 53c6276ec8..0000000000 --- a/recipes/hallo_assen.recipe +++ /dev/null @@ -1,39 +0,0 @@ -from calibre.web.feeds.news import BasicNewsRecipe - - -class AdvancedUserRecipe1302341394(BasicNewsRecipe): - title = u'Hallo Assen' - oldest_article = 180 - max_articles_per_feed = 100 - - __author__ = 'Reijndert' - no_stylesheets = True - cover_url = 'http://www.halloassen.nl/multimedia/halloassen/archive/00002/HalloAssen_2518a.gif' - language = 'nl' - country = 'NL' - version = 1 - category = u'Nieuws' - timefmt = ' %Y-%m-%d (%a)' - - keep_only_tags = [dict(name='div', attrs={'class': 'photoFrame'}), dict(name='div', attrs={'class': 'textContent'}) - ] - - remove_tags = [ - dict(name='div', attrs={'id': 'articleLinks'}), dict(name='div', attrs={'class': 'categories clearfix'}), dict( - name='div', attrs={'id': 'rating'}), dict(name='div', attrs={'id': 'comments'}) - ] - - feeds = [ - (u'Ons Nieuws', u'http://feeds.feedburner.com/halloassen/onsnieuws'), - (u'Politie', u'http://www.halloassen.nl/rss/?c=37'), - (u'Rechtbank', u'http://www.halloassen.nl/rss/?c=39'), - (u'Justitie', u'http://www.halloassen.nl/rss/?c=36'), - - (u'Evenementen', u'http://www.halloassen.nl/rss/?c=34'), - (u'Cultuur', u'http://www.halloassen.nl/rss/?c=32'), - (u'Politiek', u'http://www.halloassen.nl/rss/?c=38'), - (u'Economie', u'http://www.halloassen.nl/rss/?c=33')] - - extra_css = ''' - body {font-family: verdana, arial, helvetica, geneva, sans-serif;} - ''' diff --git a/recipes/hartford_courant.recipe b/recipes/hartford_courant.recipe deleted file mode 100644 index c2fa3fe92d..0000000000 --- a/recipes/hartford_courant.recipe +++ /dev/null @@ -1,47 +0,0 @@ -from __future__ import with_statement -__license__ = 'GPL 3' -__copyright__ = '2009, Kovid Goyal ' -__docformat__ = 'restructuredtext en' - -from calibre.web.feeds.news import BasicNewsRecipe - - -class ChicagoTribune(BasicNewsRecipe): - - title = 'The Hartford Courant' - __author__ = 'Being and Sujata Raman' - description = 'Politics, local and business news from Hartford' - language = 'en' - use_embedded_content = False - no_stylesheets = True - remove_javascript = True - auto_cleanup = True - - feeds = [ - ('Breaking News', 'http://feeds.feedburner.com/courant-breaking-news/'), - ('Nation/World News', 'http://feeds.feedburner.com/courant-nation-world/'), - ('Connecticut News', 'http://feeds.feedburner.com/courant-connecticut-news/'), - ('Hartford News', 'http://feeds.feedburner.com/courant-hartford/'), - ('West Hartford News', 'http://feeds.feedburner.com/courant-west-hartford/'), - ('Bristol', 'http://feeds.feedburner.com/courant-bristol/'), - ('Politics', 'http://feeds.feedburner.com/courant-politics/'), - ('Opinion', 'http://feeds.feedburner.com/courant-opinion/'), - ('Editorials', 'http://feeds.feedburner.com/courant-editorials/'), - ('Letters', 'http://feeds.feedburner.com/courant-letters/'), - ('Bob Englehart', 'http://feeds2.feedburner.com/BobEnglehartEnglehartsView'), - ('Business', 'http://feeds.feedburner.com/courant-business/'), - ('Sports', 'http://feeds.feedburner.com/courant-sports/'), - ('Features', 'http://feeds.feedburner.com/courant-features/'), - ('Consumer', 'http://feeds.feedburner.com/courant-consumer/'), - ('Shopping', 'http://feeds.feedburner.com/courant-shopping/'), - ('Arts & Theater', 'http://feeds.feedburner.com/courant-entertainment/'), - ('Entertainment', 'http://feeds.feedburner.com/courant-stage/'), - ('Music', 'http://feeds.feedburner.com/courant-music/'), - ('TV', 'http://feeds.feedburner.com/courant-tv/'), - ('Movies', 'http://feeds.feedburner.com/courant-movies/'), - ('Outdoors', 'http://feeds.feedburner.com/courant-outdoors/'), - ('Peter Marteka', 'http://feeds.feedburner.com/courant-marteka-column/'), - ('Jim Shea', 'http://feeds.feedburner.com/courant-jim-shea-column/'), - ('Tom Condon', 'http://feeds.feedburner.com/courant-tom-condon-column/'), - ('Colin McEnroe', 'http://feeds.feedburner.com/courant-colin-mcenroe-column/'), - ] diff --git a/recipes/icons/h2.png b/recipes/icons/h2.png deleted file mode 100644 index ae40f4befe75c283acb75fd2d8ab86c4c06c15c6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 580 zcmV-K0=xZ*P)izsUx zLE7rT#uQ8r34o0iBu)Mgl*MgCjFKhnbOl5Jh>>X$FvU2oj3!%@C2gc6qXuCBj_D0u zqB;Ff(O#n-jGeeA41@)Nv8?@+Cm8`yGT$r=rieigrZq)CJ@NP6HpwE@PRT-BgXZ`g z%B^?6z@SP~v5=*J$pLF*55pmfogD_K3z zlSG;q&DG|ORvsyXnmRwFOeH-VPo_C`3U2-?-0~fao;*jf`3C;&7RvXZ;6Hy6X1quO zy#g0gBL%s?u3re91=J=hRC@j!PzgG1RQ$59aZ2De1bD7N*#3s{)oT>bUZ8mJ81B+F zxVtNoI(`KmVQ>Q_T(1E9_$f1DMPdi8p>o~gExAZ~zzMv|%~Dv(uQ~y4;X3ThEX>ha z*wgbUA3miFFDc_urvF1c4d34YhB+#Fw(1uR4-E^96`b((yGUVQnE8@&Qv3$U+28qz ST>nV`0000bi!O?!F26|KStYZ$5bY?R{Tv1_J}5j;D)bh=k)ymI9%uMKgN^6C!!(3g0h_giK|oB#9G#VMPYxcFRH zSN%X^&av1@;rv>e4>jg68+zONO%dyxrCl(cEi1-L`jtJX|hq!C(na1$F7tNPg+qPMs5+}164@bM$V{sYUd>pi{s zbJg@X*_MAo@w*~Vou9Qn>g}X$zbA;BeN~jY|3hG{@2}O#myc%c%T}8IXu?!x`7CGO zo6FSS6m^S4h8_AOckHM}VdfFjaCyt1M?p%f)VBfc_EJBtoT{&RC+ve%PgA?eGPXU9 zW*_vtyc#T@3#;;bzJ7a$zu2s=saZerf6pGyBm>gTe~DWM4fcg?eR