Update Endgadget

This commit is contained in:
Kovid Goyal 2016-02-08 09:01:58 +05:30
parent 2460401e2b
commit fa41fbd472

View File

@ -10,9 +10,9 @@ from calibre.web.feeds.news import BasicNewsRecipe
class Engadget(BasicNewsRecipe): class Engadget(BasicNewsRecipe):
title = u'Engadget' title = u'Engadget'
__author__ = 'Starson17' __author__ = 'Starson17, modified'
__version__ = 'v1.00' __version__ = 'v1.00'
__date__ = '02, July 2011' __date__ = '02, January 2016'
description = 'Tech news' description = 'Tech news'
language = 'en' language = 'en'
oldest_article = 7 oldest_article = 7
@ -21,18 +21,20 @@ class Engadget(BasicNewsRecipe):
use_embedded_content = False use_embedded_content = False
remove_javascript = True remove_javascript = True
remove_empty_feeds = True remove_empty_feeds = True
auto_cleanup = True compress_news_images = True
compress_news_images_auto_size = 8
#keep_only_tags = [dict(name='div', attrs={'class':['post_content permalink ','post_content permalink alt-post-full']})] scale_news_images_to_device = True
#remove_tags = [dict(name='div', attrs={'class':['filed_under','post_footer']})] remove_attributes = ['class']
#remove_tags_after = [dict(name='div', attrs={'class':['post_footer']})] keep_only_tags = [
dict(name='img', attrs={'class':['stretch-img hide@m-']}),
dict(name='div', attrs={'class':['article-text c-gray-1','o-title_mark@tp+ bc-gray-1 col-10-of-12@tl+']}),
]
feeds = [(u'Posts', u'http://www.engadget.com/rss.xml')] feeds = [(u'Posts', u'http://www.engadget.com/rss.xml')]
extra_css = ''' extra_css = '''
h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;} h2{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:small;}
p{font-family:Arial,Helvetica,sans-serif;font-size:small;} p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
body{font-family:Helvetica,Arial,sans-serif;font-size:small;} body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
''' '''