mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
New recipe for the Teleread Blog by Kovid Goyal
This commit is contained in:
parent
0bb41a00a5
commit
cb2a875125
BIN
src/calibre/gui2/images/news/teleread.png
Normal file
BIN
src/calibre/gui2/images/news/teleread.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 287 B |
@ -24,7 +24,7 @@ recipe_modules = ['recipe_' + r for r in (
|
|||||||
'joelonsoftware', 'telepolis', 'common_dreams', 'nin', 'tomshardware_de',
|
'joelonsoftware', 'telepolis', 'common_dreams', 'nin', 'tomshardware_de',
|
||||||
'pagina12', 'infobae', 'ambito', 'elargentino', 'sueddeutsche', 'the_age',
|
'pagina12', 'infobae', 'ambito', 'elargentino', 'sueddeutsche', 'the_age',
|
||||||
'laprensa', 'amspec', 'freakonomics', 'criticadigital', 'elcronista',
|
'laprensa', 'amspec', 'freakonomics', 'criticadigital', 'elcronista',
|
||||||
'shacknews',
|
'shacknews', 'teleread',
|
||||||
)]
|
)]
|
||||||
|
|
||||||
import re, imp, inspect, time, os
|
import re, imp, inspect, time, os
|
||||||
|
24
src/calibre/web/feeds/recipes/recipe_teleread.py
Normal file
24
src/calibre/web/feeds/recipes/recipe_teleread.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2009, Kovid Goyal kovid@kovidgoyal.net'
|
||||||
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
'''
|
||||||
|
teleread.org
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class Teleread(BasicNewsRecipe):
|
||||||
|
|
||||||
|
title = 'Teleread Blog'
|
||||||
|
description = 'News & views on e-books, libraries, publishing and related topics'
|
||||||
|
__author__ = 'Kovid Goyal'
|
||||||
|
|
||||||
|
feeds = [('Entries', 'http://www.teleread.org/feed/')]
|
||||||
|
|
||||||
|
remove_tags = [dict(attrs={'class':['sociable', 'comments',
|
||||||
|
'wlWriterSmartContent', 'feedflare']})]
|
||||||
|
|
||||||
|
def get_article_url(self, article):
|
||||||
|
return article.get('feedburner_origlink', article.get('link', article.get('guid')))
|
Loading…
x
Reference in New Issue
Block a user