from calibre.web.feeds.news import BasicNewsRecipe


class BasicUserRecipe1314970845(BasicNewsRecipe):
    title = u'Philadelphia Inquirer'
    oldest_article = 3
    max_articles_per_feed = 50
    auto_cleanup = True
    language = 'en'
    __author__ = 'bing'
    requires_version = (0, 8, 16)

    feeds = [
        (u'Front Page', u'http://www.philly.com/inquirer_front_page.rss'),
        (u'Philly.com News', u'http://www.philly.com/philly_news.rss'),
        (u'National/World (Philly.com)',
         u'http://www.philly.com/philly_news_nation.rss'),
        (u'Politics (Philly.com)', u'http://www.philly.com/philly_politics.rss'),
        (u'Local (Philly.com)', u'http://www.philly.com/philly_news_local.rss'),
        (u'South Jersey News', u'http://www.philly.com/inq_news_south_jersey.rss'),
        (u'Sports', u'http://www.philly.com/inquirer_sports.rss'),
        (u'Tech News', u'http://www.philly.com/philly_tech.rss'),
        (u'Daily Magazine', u'http://www.philly.com/inq_magazine_daily.rss'),
        (u'Weekend', u'http://www.philly.com/inq_entertainment_weekend.rss'),
        (u'Business', u'http://www.philly.com/inq_business.rss'),
        (u'Education', u'http://www.philly.com/inquirer_education.rss'),
        (u'Books', u'http://www.philly.com/inq_books.rss'),
        (u'Entertainment', u'http://www.philly.com/inq_entertainment.rss'),
        (u'Food', u'http://www.philly.com/inq_food.rss'),
        (u'Health and Science', u'http://www.philly.com/inquirer_health_science.rss'),
        (u'Home and Design', u'http://www.philly.com/inq_home_design.rss'),
        (u'News Columnists', u'http://www.philly.com/inq_columnists.rss'),
        (u'Editorial', u'http://www.philly.com/inq_news_editorial.rss'),
        (u'Travel', u'http://www.philly.com/inquirer_travel.rss'),
        (u'Obituaries', u'http://www.philly.com/inquirer_obituaries.rss')
    ]

    def print_version(self, url):
        return url + '?viewAll=y'
