mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipe for HotAir by Walt Anthony
This commit is contained in:
parent
916a780ebf
commit
20d7986126
BIN
resources/images/news/hotair.png
Normal file
BIN
resources/images/news/hotair.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 363 B |
41
resources/recipes/hotair.recipe
Normal file
41
resources/recipes/hotair.recipe
Normal file
@ -0,0 +1,41 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Walt Anthony <workshop.northpole at gmail.com>'
|
||||
'''
|
||||
www.hotair.com
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class hotair(BasicNewsRecipe):
|
||||
title = u'Hot Air'
|
||||
__author__ = 'Walt Anthony'
|
||||
description = "The world's first, full-service conservative Internet broadcast network"
|
||||
publisher = 'Hot Air'
|
||||
category = 'news, politics, USA'
|
||||
oldest_article = 3
|
||||
max_articles_per_feed = 100
|
||||
summary_length = 150
|
||||
language = 'en'
|
||||
encoding = 'utf-8'
|
||||
use_embedded_content = False
|
||||
remove_javascript = True
|
||||
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : category
|
||||
, 'publisher' : publisher
|
||||
, 'language' : language
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
keep_only_tags = [dict(name='div', attrs={'id':'page-post'})]
|
||||
|
||||
remove_tags = [dict(name=['iframe', 'small', 'embed', 'object','link','script','form'])]
|
||||
|
||||
feeds = [
|
||||
('Hot Air', 'http://feeds.feedburner.com/hotair/main'),
|
||||
('The Greenroom', 'http://feeds2.feedburner.com/hotair/greenroom')
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user