calibre/recipes/teleread.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

27 lines
757 B
Python

#!/usr/bin/env python2
__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')))