mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
55 lines
2.0 KiB
Plaintext
55 lines
2.0 KiB
Plaintext
__license__ = 'GPL v3'
|
|
__copyright__ = '2010, Walt Anthony <workshop.northpole at gmail.com>'
|
|
'''
|
|
www.news-record.com
|
|
'''
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class NewsandRecord(BasicNewsRecipe):
|
|
title = u'Greensboro News & Record'
|
|
description = "News from Greensboro, North Carolina"
|
|
__author__ = 'Walt Anthony'
|
|
publisher = 'News & Record and Landmark Media Enterprises, LLC'
|
|
category = 'news, USA'
|
|
oldest_article = 3 #days
|
|
max_articles_per_feed = 25
|
|
summary_length = 150
|
|
language = 'en'
|
|
encoding = 'utf-8'
|
|
remove_javascript = True
|
|
no_stylesheets = True
|
|
|
|
|
|
conversion_options = {
|
|
'comment' : description
|
|
, 'tags' : category
|
|
, 'publisher' : publisher
|
|
, 'language' : language
|
|
}
|
|
|
|
|
|
|
|
remove_tags_before = dict(name='h3', attrs={'class':'nrcTxt_headline'})
|
|
remove_tags_after = dict(name='div', attrs={'id':'nrcBlk_ContentBody'})
|
|
|
|
remove_tags = [
|
|
dict(name='iframe'),
|
|
dict(name=['notags','embed','object','link','img']),
|
|
|
|
]
|
|
|
|
|
|
feeds = [
|
|
('News', 'http://www.news-record.com/news/archive/feed'),
|
|
('Greensboro News', 'http://www.news-record.com/news/greensboro/feed'),
|
|
('Education', 'http://www.news-record.com/news/education/feed'),
|
|
('Government', 'http://www.news-record.com/news/government/feed'),
|
|
('College Sports', 'http://www.news-record.com/sports/college/feed'),
|
|
('Sports Extra', 'http://www.news-record.com/blog/sportsextra/feed'),
|
|
('Life', 'http://www.news-record.com/life/top/feed'),
|
|
('NASCAR', 'http://www.news-record.com/sports/nascar/top/feed'),
|
|
('Editorials', 'http://www.news-record.com/opinion/editorials/feed'),
|
|
('Letters to the Editor', 'http://www.news-record.com/opinion/letters/feed')
|
|
]
|
|
|