mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
SNopes by STarson17. Fixes #6410 (New Recipe: Snopes)
This commit is contained in:
parent
62c4b2860d
commit
129a6fb723
46
resources/recipes/snopes.recipe
Normal file
46
resources/recipes/snopes.recipe
Normal file
@ -0,0 +1,46 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Starson17'
|
||||
'''
|
||||
snopes.com
|
||||
'''
|
||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||
|
||||
class Snopes(BasicNewsRecipe):
|
||||
title = 'Snopes'
|
||||
__author__ = 'Starson17'
|
||||
description = 'Urban Legends'
|
||||
oldest_article = 21
|
||||
max_articles_per_feed = 100
|
||||
no_stylesheets = True
|
||||
use_embedded_content = False
|
||||
encoding = 'utf8'
|
||||
publisher = 'Snopes'
|
||||
category = 'news, '
|
||||
language = 'en'
|
||||
publication_type = 'newsportal'
|
||||
remove_javascript = True
|
||||
no_stylesheets = True
|
||||
|
||||
conversion_options = {
|
||||
'comments' : description
|
||||
,'tags' : category
|
||||
,'language' : language
|
||||
,'publisher' : publisher
|
||||
,'linearize_tables': True
|
||||
}
|
||||
|
||||
keep_only_tags = [
|
||||
dict(name='h1'),
|
||||
dict(name='div', attrs={'class':['article_text']}),
|
||||
]
|
||||
|
||||
feeds = [
|
||||
('Snopes', 'http://www.snopes.com/info/whatsnew.xml'),
|
||||
]
|
||||
|
||||
extra_css = '''
|
||||
h1{font-family:Trebuchet MS,Bookman Old Style,Arial;color:#75b570}
|
||||
h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:medium;}
|
||||
p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
|
||||
body{font-family:Arial,Helvetica,sans-serif;font-size:small;}
|
||||
'''
|
Loading…
x
Reference in New Issue
Block a user