home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / daytona_beach.recipe < prev    next >
Encoding:
Text File  |  2011-09-09  |  5.5 KB  |  79 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class DaytonBeachNewsJournal(BasicNewsRecipe):
  4.     title          ='Daytona Beach News Journal'
  5.     __author__ = 'BRGriff'
  6.     pubisher  = 'News-JournalOnline.com'
  7.     description           = 'Daytona Beach, Florida, Newspaper'
  8.     category              = 'News, Daytona Beach, Florida'
  9.     oldest_article = 1
  10.     max_articles_per_feed = 100
  11.     remove_javascript = True
  12.     use_embedded_content   = False
  13.     no_stylesheets = True
  14.     language = 'en'
  15.     filterDuplicates = True
  16.     remove_attributes = ['style']
  17.  
  18.     keep_only_tags     = [dict(name='div', attrs={'class':'page-header'}),
  19.                                     dict(name='div', attrs={'class':'asset-body'})
  20.                                         ]
  21.     remove_tags         = [dict(name='div', attrs={'class':['byline-section', 'asset-meta']})
  22.                                       ]
  23.  
  24.     feeds            = [
  25.                              #####NEWS#####
  26.                             (u"News", u"http://www.news-journalonline.com/rss.xml"),
  27.                             (u"Breaking News", u"http://www.news-journalonline.com/breakingnews/rss.xml"),
  28.                             (u"Local - East Volusia", u"http://www.news-journalonline.com/news/local/east-volusia/rss.xml"),
  29.                             (u"Local - West Volusia", u"http://www.news-journalonline.com/news/local/west-volusia/rss.xml"),
  30.                             (u"Local - Southeast", u"http://www.news-journalonline.com/news/local/southeast-volusia/rss.xml"),
  31.                             (u"Local - Flagler", u"http://www.news-journalonline.com/news/local/flagler/rss.xml"),
  32.                             (u"Florida", u"http://www.news-journalonline.com/news/florida/rss.xml"),
  33.                             (u"National/World", u"http://www.news-journalonline.com/news/nationworld/rss.xml"),
  34.                             (u"Politics", u"http://www.news-journalonline.com/news/politics/rss.xml"),
  35.                             (u"News of Record", u"http://www.news-journalonline.com/news/news-of-record/rss.xml"),
  36.                              ####BUSINESS####
  37.                             (u"Business", u"http://www.news-journalonline.com/business/rss.xml"),
  38.                             #(u"Jobs", u"http://www.news-journalonline.com/business/jobs/rss.xml"),
  39.                             #(u"Markets", u"http://www.news-journalonline.com/business/markets/rss.xml"),
  40.                             #(u"Real Estate", u"http://www.news-journalonline.com/business/real-estate/rss.xml"),
  41.                             #(u"Technology", u"http://www.news-journalonline.com/business/technology/rss.xml"),
  42.                               ####SPORTS####
  43.                             (u"Sports", u"http://www.news-journalonline.com/sports/rss.xml"),
  44.                             (u"Racing", u"http://www.news-journalonline.com/racing/rss.xml"),
  45.                             (u"Highschool", u"http://www.news-journalonline.com/sports/highschool/rss.xml"),
  46.                             (u"College", u"http://www.news-journalonline.com/sports/college/rss.xml"),
  47.                             (u"Basketball", u"http://www.news-journalonline.com/sports/basketball/rss.xml"),
  48.                             (u"Football", u"http://www.news-journalonline.com/sports/football/rss.xml"),
  49.                             (u"Golf", u"http://www.news-journalonline.com/sports/golf/rss.xml"),
  50.                             (u"Other Sports", u"http://www.news-journalonline.com/sports/other/rss.xml"),
  51.                               ####LIFESTYLE####
  52.                             (u"Lifestyle", u"http://www.news-journalonline.com/lifestyle/rss.xml"),
  53.                             #(u"Fashion", u"http://www.news-journalonline.com/lifestyle/fashion/rss.xml"),
  54.                             (u"Food", u"http://www.news-journalonline.com/lifestyle/food/rss.xml"),
  55.                             #(u"Health", u"http://www.news-journalonline.com/lifestyle/health/rss.xml"),
  56.                             (u"Home and Garden", u"http://www.news-journalonline.com/lifestyle/home-and-garden/rss.xml"),
  57.                             (u"Living", u"http://www.news-journalonline.com/lifestyle/living/rss.xml"),
  58.                             (u"Religion", u"http://www.news-journalonline.com/lifestyle/religion/rss.xml"),
  59.                             #(u"Travel", u"http://www.news-journalonline.com/lifestyle/travel/rss.xml"),
  60.                               ####OPINION####
  61.                             #(u"Opinion", u"http://www.news-journalonline.com/opinion/rss.xml"),
  62.                             #(u"Letters to Editor", u"http://www.news-journalonline.com/opinion/letters-to-the-editor/rss.xml"),
  63.                             #(u"Columns", u"http://www.news-journalonline.com/columns/rss.xml"),
  64.                             #(u"Podcasts", u"http://www.news-journalonline.com/podcasts/rss.xml"),
  65.                               ####ENTERTAINMENT####    ##Weekly Feature##
  66.                             (u"Entertainment", u"http://www.go386.com/rss.xml"),
  67.                             (u"Go Out", u"http://www.go386.com/go/rss.xml"),
  68.                             (u"Music", u"http://www.go386.com/music/rss.xml"),
  69.                             (u"Movies", u"http://www.go386.com/movies/rss.xml"),
  70.                             #(u"Culture", u"http://www.go386.com/culture/rss.xml"),
  71.  
  72.                             ]
  73.  
  74.     extra_css = '''
  75.                     .page-header{font-family:Arial,Helvetica,sans-serif; font-style:bold;font-size:22pt;}
  76.                     .asset-body{font-family:Helvetica,Arial,sans-serif; font-size:16pt;}
  77.  
  78.       '''
  79.