home *** CD-ROM | disk | FTP | other *** search
- __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;}
- '''
-