#!/usr/bin/env python2
__license__ = 'GPL v3'
__copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
'''
sciencedaily.com
'''

from calibre.web.feeds.news import BasicNewsRecipe


class ScienceDaily(BasicNewsRecipe):
    title = u'ScienceDaily'
    __author__ = u'Darko Miletic'
    title                 = 'ScienceDaily'
    description           = ('ScienceDaily is one of the Internet\'s most popular '
                             'science news web sites. Since starting in 1995, the '
                             'award-winning site has earned the loyalty of students, '
                             'researchers, healthcare professionals, government '
                             'agencies, educators and the general public around the '
                             'world. Now with more than 6 million monthly visitors '
                             'worldwide, ScienceDaily generates nearly 20 million '
                             'page views a month and is steadily growing in its '
                             'global audience.')
    category              = 'medicin, healthcare'
    oldest_article        = 7
    max_articles_per_feed = 50
    auto_cleanup          = True
    language              = 'en'

    # Feed are found here: https://www.sciencedaily.com/newsfeeds.htm
    feeds = [
        ('Latest Science News', 'https://rss.sciencedaily.com/top.xml'),
        ('All Top News', 'https://rss.sciencedaily.com/top/science.xml'),
        ('Health News', 'https://rss.sciencedaily.com/top/health.xml'),
        ('Technology News', 'https://rss.sciencedaily.com/top/technology.xml'),
        ('Environment News', 'https://rss.sciencedaily.com/top/environment.xml'),
        ('Society News', 'https://rss.sciencedaily.com/top/society.xml'),
        ('Strange &amp; Offbeat News', 'https://rss.sciencedaily.com/strange_offbeat.xml'),
    ]
