mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
The Old New Thing by Darko Miletic
This commit is contained in:
parent
52b3219456
commit
41e696eba1
BIN
resources/images/news/oldnewthing.png
Normal file
BIN
resources/images/news/oldnewthing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 786 B |
34
resources/recipes/oldnewthing.recipe
Normal file
34
resources/recipes/oldnewthing.recipe
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
__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':['postsub','comment']})]
|
||||||
|
|
||||||
|
feeds = [(u'Posts', u'http://blogs.msdn.com/oldnewthing/rss.xml')]
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user