home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_3897 < prev    next >
Encoding:
Text File  |  2010-09-30  |  1.3 KB  |  41 lines

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2008, Lionel Bergeret <lbergeret at gmail.com>'
  5. '''
  6. cinebel.be
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class Cinebel(BasicNewsRecipe):
  12.     title                 = u'Cinebel'
  13.     __author__            = u'Lionel Bergeret'
  14.     description           = u'Cinema news from Belgium in French'
  15.     publisher             = u'cinebel.be'
  16.     category              = 'news, cinema, movie, Belgium'
  17.     oldest_article        = 3
  18.     encoding              = 'utf8'
  19.     language              = 'fr_BE'
  20.  
  21.     max_articles_per_feed = 20
  22.     no_stylesheets        = True
  23.     use_embedded_content  = False
  24.     timefmt               = ' [%d %b %Y]'
  25.  
  26.     keep_only_tags = [
  27.      dict(name = 'span', attrs = {'class': 'movieMainTitle'})
  28.     ,dict(name = 'div', attrs = {'id': 'filmPoster'})
  29.         ,dict(name = 'div', attrs = {'id': 'filmDefinition'})
  30.         ,dict(name = 'div', attrs = {'id': 'synopsis'})
  31.     ]
  32.  
  33.     feeds = [
  34.          (u'Les sorties de la semaine' , u'http://www.cinebel.be/Servlets/RssServlet?languageCode=fr&rssType=0' )
  35.         ,(u'Top 10'                    , u'http://www.cinebel.be/Servlets/RssServlet?languageCode=fr&rssType=2' )
  36.     ]
  37.  
  38.     def get_cover_url(self):
  39.         cover_url = 'http://www.cinebel.be/portal/resources/common/logo_index.gif'
  40.         return cover_url
  41.