calibre/recipes/rte.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

28 lines
1000 B
Plaintext

from calibre.web.feeds.news import BasicNewsRecipe
class RTE(BasicNewsRecipe):
title = u'RTE News'
oldest_article = 7
max_articles_per_feed = 100
__author__ = u'Robin Phillips'
language = 'en_IE'
auto_cleanup = True
auto_cleanup_keep = '//figure[@class="photography gal642 single"]'
remove_tags = [dict(attrs={'class': [
'topAd', 'botad', 'previousNextItem', 'headline', 'footerLinks', 'footernav']})]
feeds = [
(u'News', u'http://www.rte.ie/rss/news.xml'),
(u'Sport', u'http://www.rte.ie/rss/sport.xml'),
(u'Soccer', u'http://www.rte.ie/rss/soccer.xml'),
(u'GAA', u'http://www.rte.ie/rss/gaa.xml'),
(u'Rugby', u'http://www.rte.ie/rss/rugby.xml'),
(u'Racing', u'http://www.rte.ie/rss/racing.xml'),
(u'Business', u'http://www.rte.ie/rss/business.xml'),
(u'Entertainment', u'http://www.rte.ie/rss/entertainment.xml')]
# def print_version(self, url):
# return url.replace('http://www', 'http://m')