| 1 |
__license__ = 'GPL v3' |
| 2 |
__copyright__ = '2010, Walt Anthony <workshop.northpole at gmail.com>' |
| 3 |
''' |
| 4 |
www.news-record.com |
| 5 |
''' |
| 6 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 7 |
|
| 8 |
|
| 9 |
class NewsandRecord(BasicNewsRecipe): |
| 10 |
title = 'Greensboro News & Record' |
| 11 |
description = 'News from Greensboro, North Carolina' |
| 12 |
__author__ = 'Walt Anthony' |
| 13 |
publisher = 'News & Record and Landmark Media Enterprises, LLC' |
| 14 |
category = 'news, USA' |
| 15 |
oldest_article = 3 # days |
| 16 |
max_articles_per_feed = 25 |
| 17 |
summary_length = 150 |
| 18 |
language = 'en' |
| 19 |
encoding = 'utf-8' |
| 20 |
remove_javascript = True |
| 21 |
no_stylesheets = True |
| 22 |
auto_cleanup = True |
| 23 |
|
| 24 |
conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language} |
| 25 |
|
| 26 |
feeds = [ |
| 27 |
('News', 'http://www.greensboro.com/search/?q=&t=article&l=10&d=&d1=&d2=&s=start_time&sd=desc&c[]=news,news/*&f=rss'), |
| 28 |
( |
| 29 |
'Greensboro News', |
| 30 |
'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=news/local,news/crime,news/goverment,news/schools,news/rockingham_county,news/local,news/crime,news/goverment,news/schools,news/rockingham_county/*&f=rss', |
| 31 |
), # noqa: E501 |
| 32 |
('Business', 'http://www.greensboro.com/search/?q=&t=article&l=10&d=&d1=&d2=&s=start_time&sd=desc&c[]=business,business/*&f=rss'), |
| 33 |
( |
| 34 |
'Local Business', |
| 35 |
'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=business/local_business,business/local_business/*&f=rss', |
| 36 |
), # noqa: E501 |
| 37 |
('Sports', 'http://www.greensboro.com/search/?q=&t=article&l=10&d=&d1=&d2=&s=start_time&sd=desc&c[]=sports,sports/*&f=rss'), |
| 38 |
( |
| 39 |
'College Sports', |
| 40 |
'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=sports/college,sports/college/*&f=rss', |
| 41 |
), # noqa: E501 |
| 42 |
( |
| 43 |
'Sports Extra', |
| 44 |
'http://www.greensboro.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=blogs/sports_extra,blogs/sports_extra/*&f=rss', |
| 45 |
), # noqa: E501 |
| 46 |
('Life', 'http://www.greensboro.com/search/?q=&t=article&l=10&d=&d1=&d2=&s=start_time&sd=desc&c[]=life,life/*&f=rss'), |
| 47 |
] |