mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
89 lines
4.6 KiB
Plaintext
89 lines
4.6 KiB
Plaintext
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class DaytonBeachNewsJournal(BasicNewsRecipe):
|
|
title = 'Daytona Beach News Journal'
|
|
__author__ = 'BRGriff'
|
|
pubisher = 'News-JournalOnline.com'
|
|
description = 'Daytona Beach, Florida, Newspaper'
|
|
category = 'News, Daytona Beach, Florida'
|
|
oldest_article = 1
|
|
max_articles_per_feed = 100
|
|
remove_javascript = True
|
|
use_embedded_content = False
|
|
no_stylesheets = True
|
|
language = 'en'
|
|
filterDuplicates = True
|
|
remove_attributes = ['style']
|
|
|
|
keep_only_tags = [dict(name='div', attrs={'class': 'page-header'}),
|
|
dict(name='div', attrs={'class': 'asset-body'})
|
|
]
|
|
remove_tags = [dict(name='div', attrs={'class': ['byline-section', 'asset-meta']})
|
|
]
|
|
|
|
feeds = [
|
|
# ####NEWS#####
|
|
(u"News", u"http://www.news-journalonline.com/rss.xml"),
|
|
(u"Breaking News",
|
|
u"http://www.news-journalonline.com/breakingnews/rss.xml"),
|
|
(u"Local - East Volusia",
|
|
u"http://www.news-journalonline.com/news/local/east-volusia/rss.xml"),
|
|
(u"Local - West Volusia",
|
|
u"http://www.news-journalonline.com/news/local/west-volusia/rss.xml"),
|
|
(u"Local - Southeast",
|
|
u"http://www.news-journalonline.com/news/local/southeast-volusia/rss.xml"),
|
|
(u"Local - Flagler",
|
|
u"http://www.news-journalonline.com/news/local/flagler/rss.xml"),
|
|
(u"Florida", u"http://www.news-journalonline.com/news/florida/rss.xml"),
|
|
(u"National/World",
|
|
u"http://www.news-journalonline.com/news/nationworld/rss.xml"),
|
|
(u"Politics", u"http://www.news-journalonline.com/news/politics/rss.xml"),
|
|
(u"News of Record",
|
|
u"http://www.news-journalonline.com/news/news-of-record/rss.xml"),
|
|
# ###BUSINESS####
|
|
(u"Business", u"http://www.news-journalonline.com/business/rss.xml"),
|
|
# (u"Jobs", u"http://www.news-journalonline.com/business/jobs/rss.xml"),
|
|
# (u"Markets", u"http://www.news-journalonline.com/business/markets/rss.xml"),
|
|
# (u"Real Estate", u"http://www.news-journalonline.com/business/real-estate/rss.xml"),
|
|
# (u"Technology", u"http://www.news-journalonline.com/business/technology/rss.xml"),
|
|
# ###SPORTS####
|
|
(u"Sports", u"http://www.news-journalonline.com/sports/rss.xml"),
|
|
(u"Racing", u"http://www.news-journalonline.com/racing/rss.xml"),
|
|
(u"Highschool", u"http://www.news-journalonline.com/sports/highschool/rss.xml"),
|
|
(u"College", u"http://www.news-journalonline.com/sports/college/rss.xml"),
|
|
(u"Basketball", u"http://www.news-journalonline.com/sports/basketball/rss.xml"),
|
|
(u"Football", u"http://www.news-journalonline.com/sports/football/rss.xml"),
|
|
(u"Golf", u"http://www.news-journalonline.com/sports/golf/rss.xml"),
|
|
(u"Other Sports",
|
|
u"http://www.news-journalonline.com/sports/other/rss.xml"),
|
|
# ###LIFESTYLE####
|
|
(u"Lifestyle", u"http://www.news-journalonline.com/lifestyle/rss.xml"),
|
|
# (u"Fashion", u"http://www.news-journalonline.com/lifestyle/fashion/rss.xml"),
|
|
(u"Food", u"http://www.news-journalonline.com/lifestyle/food/rss.xml"),
|
|
# (u"Health", u"http://www.news-journalonline.com/lifestyle/health/rss.xml"),
|
|
(u"Home and Garden",
|
|
u"http://www.news-journalonline.com/lifestyle/home-and-garden/rss.xml"),
|
|
(u"Living", u"http://www.news-journalonline.com/lifestyle/living/rss.xml"),
|
|
(u"Religion", u"http://www.news-journalonline.com/lifestyle/religion/rss.xml"),
|
|
# (u"Travel", u"http://www.news-journalonline.com/lifestyle/travel/rss.xml"),
|
|
# ###OPINION####
|
|
# (u"Opinion", u"http://www.news-journalonline.com/opinion/rss.xml"),
|
|
# (u"Letters to Editor", u"http://www.news-journalonline.com/opinion/letters-to-the-editor/rss.xml"),
|
|
# (u"Columns", u"http://www.news-journalonline.com/columns/rss.xml"),
|
|
# (u"Podcasts", u"http://www.news-journalonline.com/podcasts/rss.xml"),
|
|
# ###ENTERTAINMENT#### ##Weekly Feature##
|
|
(u"Entertainment", u"http://www.go386.com/rss.xml"),
|
|
(u"Go Out", u"http://www.go386.com/go/rss.xml"),
|
|
(u"Music", u"http://www.go386.com/music/rss.xml"),
|
|
(u"Movies", u"http://www.go386.com/movies/rss.xml"),
|
|
# (u"Culture", u"http://www.go386.com/culture/rss.xml"),
|
|
|
|
]
|
|
|
|
extra_css = '''
|
|
.page-header{font-family:Arial,Helvetica,sans-serif; font-style:bold;font-size:22pt;}
|
|
.asset-body{font-family:Helvetica,Arial,sans-serif; font-size:16pt;}
|
|
|
|
'''
|