calibre/recipes/science_news.recipe
Kovid Goyal 4d4f10d9b6 Update Science News
Fixes #1589276 [Science  News produces garbled output](https://bugs.launchpad.net/calibre/+bug/1589276)

Merge branch 'master' of https://github.com/CoderAllan/calibre
2016-10-05 23:54:08 +05:30

38 lines
1.4 KiB
Python

#!/usr/bin/env python2
__license__ = 'GPL v3'
'''
sciencenews.org
'''
from calibre.web.feeds.news import BasicNewsRecipe
class ScienceNewsIssue(BasicNewsRecipe):
title = u'Science News Recent Issues'
__author__ = u'Darko Miletic, Sujata Raman and Starson17'
description = u'''Science News is an award-winning weekly
newsmagazine covering the most important research in all fields of science.
Its 16 pages each week are packed with short, accurate articles that appeal
to both general readers and scientists. Published since 1922, the magazine
now reaches about 150,000 subscribers and more than 1 million readers.
These are the latest News Items from Science News. This recipe downloads
the last 30 days worth of articles.'''
category = u'Science, Technology, News'
publisher = u'Society for Science & the Public'
oldest_article = 15
language = 'en'
max_articles_per_feed = 50
no_stylesheets = True
use_embedded_content = False
timefmt = ' [%A, %d %B, %Y]'
auto_cleanup = False
keep_only_tags = [
dict(name="h1", attrs={'itemprop': 'headline'}),
dict(name="div", attrs={'property': 'rnews:articlebody schema:articleBody'}),
dict(name="div", attrs={'itemprop': 'author'}),
]
feeds = [(u"Science News Headlines",
u'https://www.sciencenews.org/feeds/headlines.rss')]