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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2008, Lionel Bergeret <lbergeret at gmail.com>'
  5. '''
  6. lavenir.net
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class LAvenir(BasicNewsRecipe):
  12.     title                 = u'L\'Avenir'
  13.     __author__            = u'Lionel Bergeret'
  14.     description           = u'News from Belgium in French'
  15.     publisher             = u'lavenir.net'
  16.     category              = 'news, 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 = 'div', attrs = {'class': 'photo'})
  28.       ,dict(name = 'p', attrs = {'class': 'intro'})
  29.       ,dict(name = 'div', attrs = {'class': 'article-body'})
  30.     ]
  31.  
  32.     feeds = [
  33.          (u'Belgique'       , u'http://www.lavenir.net/rss.aspx?foto=1&intro=1§ion=info&info=df156511-c24f-4f21-81c3-a5d439a9cf4b' )
  34.         ,(u'Monde'          , u'http://www.lavenir.net/rss.aspx?foto=1&intro=1§ion=info&info=1642237c-66b9-4e8a-a8c1-288d61fefe7e' )
  35.         ,(u'Societe'        , u'http://www.lavenir.net/rss.aspx?foto=1&intro=1§ion=info&info=12e1a2f4-7e03-4cf1-afec-016869072317' )
  36.     ]
  37.  
  38.     def get_cover_url(self):
  39.         cover_url = 'http://www.lavenir.net/extra/Static/journal/Pdf/1/UNE_Nationale.PDF'
  40.         return cover_url
  41.