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

  1. __license__   = 'GPL v3'
  2. __author__    = 'Ricardo Jurado'
  3. __copyright__ = 'Ricardo Jurado'
  4. __version__     = 'v0.1'
  5. __date__        = '22 February 2011'
  6.  
  7. '''
  8. http://blog.flickr.net/
  9. '''
  10.  
  11.  
  12. from calibre.web.feeds.news import BasicNewsRecipe
  13.  
  14. class AdvancedUserRecipe1297031650(BasicNewsRecipe):
  15.  
  16.     title          = u'Flickr Blog'
  17.     masthead_url   = 'http://flickrtheblog.files.wordpress.com/2008/11/flickblog_logo.gif'
  18.     cover_url      = 'http://flickrtheblog.files.wordpress.com/2008/11/flickblog_logo.gif'
  19.     publisher      = u''
  20.  
  21.     __author__            = 'Ricardo Jurado'
  22.     description           = 'Pictures Blog'
  23.     category              = 'Blog,Pictures'
  24.  
  25.     oldest_article = 120
  26.     max_articles_per_feed = 10
  27.     no_stylesheets = True
  28.     use_embedded_content = False
  29.     encoding = 'UTF-8'
  30.     remove_javascript = True
  31.     language = 'es'
  32.  
  33.     extra_css             = """
  34.                                p{text-align: justify; font-size: 100%}
  35.                                body{ text-align: left; font-size:100% }
  36.                                h2{font-family: sans-serif; font-size:130%; font-weight:bold; text-align: justify; }
  37.                                .published{font-family:Arial,Helvetica,sans-serif; font-size:80%; }
  38.                                .posted{font-family:Arial,Helvetica,sans-serif; font-size:80%; }
  39.                                  """
  40.  
  41.     keep_only_tags = [
  42.                  dict(name='div', attrs={'class':'entry'})
  43.                  ]
  44.  
  45.     feeds          = [
  46.                      (u'BLOG', u'http://blog.flickr.net/es/feed/atom/')
  47.                      ]
  48.