#!/usr/bin/env python2 __license__ = 'GPL v3' __copyright__ = 'Copyright 2011 Starson17' ''' engadget.com ''' from calibre.web.feeds.news import BasicNewsRecipe class Engadget(BasicNewsRecipe): title = u'Engadget' __author__ = 'Starson17, modified by epubli' __version__ = 'v1.10' __date__ = '23, March 2016' description = 'Tech news' language = 'en' oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True use_embedded_content = False remove_javascript = True remove_empty_feeds = True compress_news_images = True compress_news_images_auto_size = 8 remove_attributes = ['class'] keep_only_tags = [ dict(name='img', attrs={'class': ['stretch-img hide@m-']}), dict(name='div', attrs={'class': [ 'article-text c-gray-1', 'article-text c-gray-1 no-review', 'o-title_mark@tp+ bc-gray-1 col-10-of-12@tl+']}), ] feeds = [(u'Posts', u'http://www.engadget.com/rss.xml')] extra_css = ''' h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} h2{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:small;} p{font-family:Arial,Helvetica,sans-serif;font-size:small;} body{font-family:Helvetica,Arial,sans-serif;font-size:small;} '''