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

33 lines
1.1 KiB
Plaintext

__license__ = 'GPL v3'
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
'''
blogs.msdn.com/oldnewthing
'''
from calibre.web.feeds.news import BasicNewsRecipe
class OldNewThing(BasicNewsRecipe):
title = 'The Old New Thing'
__author__ = 'Darko Miletic'
description = 'Famous blog by Windows guru Raymond Chen'
oldest_article = 15
max_articles_per_feed = 100
language = 'en'
encoding = 'utf-8'
no_stylesheets = True
use_embedded_content = False
publication_type = 'blog'
extra_css = ' body{font-family: Verdana,Arial,Helvetica,sans-serif} .code{font-family: "Lucida Console",monospace} '
conversion_options = {
'comment': description, 'tags': 'blog, windows, microsoft, programming', 'publisher': 'Raymond Chen', 'language': language
}
remove_attributes = ['width', 'height']
keep_only_tags = [dict(attrs={'class': 'full-post'})]
remove_tags = [
dict(attrs={'class': ['post-attributes', 'post-tags', 'post-actions']})]
feeds = [(u'Posts', u'http://blogs.msdn.com/oldnewthing/rss.xml')]