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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1306097511(BasicNewsRecipe):
  4.     title = u'Metro Nieuws NL'
  5.     description = u'Metro Nieuws - NL'
  6. # Version 1.2, updated cover image to match the changed website.
  7. # added info date on title
  8.     oldest_article = 2
  9.     max_articles_per_feed = 100
  10.     __author__     = u'DrMerry'
  11.     description    = u'Metro Nederland'
  12.     language       = u'nl'
  13.     simultaneous_downloads = 5
  14.     delay          = 1
  15. #    timefmt        = ' [%A, %d %B, %Y]'
  16.     timefmt        = ' [%A, %d %b %Y]'
  17.     no_stylesheets = True
  18.     remove_javascript = True
  19.     remove_empty_feeds = True
  20.     cover_url      = 'http://www.oldreadmetro.com/img/en/metroholland/last/1/small.jpg'
  21.     remove_empty_feeds = True
  22.     publication_type = 'newspaper'
  23.     remove_tags_before = dict(name='div', attrs={'id':'date'})
  24.     remove_tags_after = dict(name='div', attrs={'id':'column-1-3'})
  25.     encoding              = 'utf-8'
  26.     extra_css = 'body{font-size:12px} #date, .article-image-caption {font-size: 0.583em} h2 {font-size: 0.917em} p.small, span, li, li span span, p, b, i, u, p.small.article-paragraph,  p.small.article-paragraph p, p.small.article-paragraph span, p span, span {font-size: 0.833em} h1 {font-size: 1em}'
  27.  
  28.     remove_tags = [dict(name='div', attrs={'class':[ 'metroCommentFormWrap',
  29.         'commentForm', 'metroCommentInnerWrap', 'article-slideshow-counter-container', 'article-slideshow-control', 'ad', 'header-links',
  30.         'art-rgt','pluck-app pluck-comm', 'share-and-byline', 'article-tools-below-title', 'col-179 ', 'related-links', 'clear padding-top-15', 'share-tools', 'article-page-auto-pushes', 'footer-edit']}),
  31.         dict(name='div', attrs={'id':['article-2', 'article-4', 'article-1', 'navigation', 'footer', 'header', 'comments', 'sidebar']}),
  32.         dict(name='iframe')]
  33.  
  34.     feeds = [
  35.         (u'Binnenland', u'http://www.metronieuws.nl/rss.xml?c=1277377288-3'),
  36.         (u'Economie', u'http://www.metronieuws.nl/rss.xml?c=1278070988-0'),
  37.         (u'Den Haag', u'http://www.metronieuws.nl/rss.xml?c=1289013337-3'),
  38.         (u'Rotterdam', u'http://www.metronieuws.nl/rss.xml?c=1289013337-2'),
  39.         (u'Amsterdam', u'http://www.metronieuws.nl/rss.xml?c=1289013337-1'),
  40.         (u'Columns', u'http://www.metronieuws.nl/rss.xml?c=1277377288-17'),
  41.         (u'Entertainment', u'http://www.metronieuws.nl/rss.xml?c=1277377288-2'),
  42.         (u'Dot', u'http://www.metronieuws.nl/rss.xml?c=1283166782-12'),
  43.         (u'Familie', u'http://www.metronieuws.nl/rss.xml?c=1283166782-9'),
  44.         (u'Blogs', u'http://www.metronieuws.nl/rss.xml?c=1295586825-6'),
  45.         (u'Reizen', u'http://www.metronieuws.nl/rss.xml?c=1277377288-13'),
  46.         (u'Carri├¿re', u'http://www.metronieuws.nl/rss.xml?c=1278070988-1'),
  47.         (u'Sport', u'http://www.metronieuws.nl/rss.xml?c=1277377288-12')
  48.         ]
  49.