mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
39 lines
1.9 KiB
Python
39 lines
1.9 KiB
Python
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class NavyTimes(BasicNewsRecipe):
|
|
title = 'Army and Navy Times'
|
|
__author__ = 'jde'
|
|
__date__ = '16 May 2012'
|
|
__version__ = '1.0'
|
|
description = 'News of the U.S. Navy'
|
|
language = 'en'
|
|
publisher = 'NavyTimes.com'
|
|
category = 'news, U.S. Navy'
|
|
tags = 'news, U.S. Navy'
|
|
oldest_article = 7 # days
|
|
max_articles_per_feed = 25
|
|
publication_type = 'newspaper'
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
encoding = None
|
|
recursions = 0
|
|
needs_subscription = False
|
|
remove_javascript = True
|
|
remove_empty_feeds = True
|
|
auto_cleanup = True
|
|
|
|
feeds = [
|
|
('Home page', 'https://www.navytimes.com/arc/outboundfeeds/rss/?outputType=xml'),
|
|
('News', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/news/?outputType=xml'),
|
|
('Your Navy', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/news/your-navy/?outputType=xml'),
|
|
('Your Army', 'https://www.armytimes.com/arc/outboundfeeds/rss/category/news/your-army/?outputType=xml'),
|
|
('Your Air Force', 'https://www.airforcetimes.com/arc/outboundfeeds/rss/category/news/your-air-force?outputType=xml'),
|
|
('Your Marine Core', 'https://www.marinecorpstimes.com/arc/outboundfeeds/rss/category/news/your-marine-corps/?outputType=xml'),
|
|
('Pentagon and Congress', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/news/pentagon-congress/?outputType=xml'),
|
|
('Pay and Benefits', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/pay-benefits/?outputType=xml'),
|
|
('Veterans', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/veterans/?outputType=xml'),
|
|
('Education and Transition', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/education-transition/?outputType=xml'),
|
|
('Flashpoints', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/flashpoints/?outputType=xml'),
|
|
]
|