#!/usr/bin/env python

__license__ = 'GPL v3'
__copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
'''
sfgate.com
'''

from calibre.web.feeds.news import BasicNewsRecipe


class SanFranciscoChronicle(BasicNewsRecipe):
    title = u'San Francisco Chronicle'
    __author__ = u'Darko Miletic and Sujata Raman'
    description = u'San Francisco news'
    language = 'en_US'

    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    use_embedded_content = False
    auto_cleanup = True

    extra_css       = '''
                        h1{font-family :Arial,Helvetica,sans-serif; font-size:large;}
                        h2{font-family :Arial,Helvetica,sans-serif; font-size:medium; color:#666666;}
                        h3{font-family :Arial,Helvetica,sans-serif; font-size:medium; color:#000000;}
                        h4{font-family :Arial,Helvetica,sans-serif; font-size: x-small;}
                        p{font-family :Arial,Helvetica,sans-serif; font-size:x-small;}
                        .byline{font-family :Arial,Helvetica,sans-serif; font-size: xx-small;}
                        .date{font-family :Arial,Helvetica,sans-serif; font-size: xx-small;}
                        .dtlcomment{font-style:italic;}
                        .georgia h3{font-family :Arial,Helvetica,sans-serif; font-size:x-small; color:#000000;}
                     '''

    feeds = [
        (u'Bay Area News', u'http://www.sfgate.com/bayarea/feed/Bay-Area-News-429.php'),
        (u'City Insider', u'http://www.sfgate.com/default/feed/City-Insider-Blog-573.php'),
        (u'Crime Scene', u'http://www.sfgate.com/rss/feed/Crime-Scene-Blog-599.php'),
        (u'Education News',
         u'http://www.sfgate.com/education/feed/Education-News-from-SFGate-430.php'),
        (u'National News', u'http://www.sfgate.com/rss/feed/National-News-RSS-Feed-435.php'),
        (u'Weird News', u'http://www.sfgate.com/weird/feed/Weird-News-RSS-Feed-433.php'),
        (u'World News', u'http://www.sfgate.com/rss/feed/World-News-From-SFGate-432.php'),
    ]
