calibre/recipes/teleread.recipe
Kovid Goyal 29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30

27 lines
755 B
Python

#!/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'
language = 'en'
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')))