06-21-2011, 02:46 PM | #1 |
Connoisseur
Posts: 58
Karma: 12
Join Date: May 2011
Location: Deland, Florida
Device: Kindle 3
|
New Recipe - Daytona Beach News Journal
Here is a recipe for the Daytona Beach News Journal:
Code:
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;} ''' Last edited by kovidgoyal; 06-21-2011 at 06:05 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with Daytona Beach News Journal Recipe | BRGriff | Recipes | 0 | 05-12-2011 10:14 PM |
Recipe request: World Journal | teraflame | Recipes | 0 | 03-09-2011 01:11 PM |
New Journal of Physics recipe | chemacortes | Recipes | 0 | 01-05-2011 08:08 AM |
Poughkeepsie Journal recipe | weebl | Recipes | 0 | 12-02-2010 08:56 AM |
New England of Journal recipe | Ebookerr | Calibre | 1 | 08-26-2010 04:59 AM |