| 1 |
#!/usr/bin/env python |
| 2 |
__license__ = 'GPL v3' |
| 3 |
__copyright__ = '2009, Kovid Goyal [email protected]' |
| 4 |
__docformat__ = 'restructuredtext en' |
| 5 |
|
| 6 |
''' |
| 7 |
teleread.org |
| 8 |
''' |
| 9 |
|
| 10 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 11 |
|
| 12 |
|
| 13 |
class Teleread(BasicNewsRecipe): |
| 14 |
title = 'Teleread Blog' |
| 15 |
description = 'News & views on e-books, libraries, publishing and related topics' |
| 16 |
__author__ = 'Kovid Goyal' |
| 17 |
language = 'en' |
| 18 |
|
| 19 |
feeds = [('Entries', 'http://www.teleread.org/feed/')] |
| 20 |
|
| 21 |
remove_tags = [dict(attrs={'class': ['sociable', 'comments', 'wlWriterSmartContent', 'feedflare']})] |
| 22 |
|
| 23 |
def get_article_url(self, article): |
| 24 |
return article.get('feedburner_origlink', article.get('link', article.get('guid'))) |