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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1265145870(BasicNewsRecipe):
  4.     title          = u'Scinexx.de'
  5.     language = 'de'
  6.     __author__ = 'JSuer'
  7.     cover_url    = 'http://www.g-o.de/grafiken/web_scinexx/head2.gif'
  8.     oldest_article = 14
  9.     max_articles_per_feed = 100
  10.     no_stylesheets = True
  11.     use_embedded_content  = False
  12.     encoding = 'ISO-8859-1'
  13.  
  14.     feeds          = [(u'Scinexx.de', u'http://feeds.feedburner.com/scinexx')]
  15.  
  16.     remove_tags = [{'class':['text1fett']}]
  17.     remove_tags = [{'href':['javascript:window.print()']}]
  18.  
  19.     extra_css = '''
  20.                     .text2normal{font-family:Verdana,Geneva,Kalimati,sans-serif; font-size:x-small;}
  21.                     .text1normalblau{font-family:Verdana,Geneva,Kalimati,sans-serif; font-size:small;}
  22.                     .text1fett{font-color:grey; font-size:small;}
  23.                     .titel1{font-family:Georgia,"Times New Roman",Times,serif; font-size:large;}
  24.                     .titel2{font-family:Georgia,"Times New Roman",Times,serif; }
  25.                     .titel3{font-family:Georgia,"Times New Roman",Times,serif; font-size:larger;}
  26.                     h1{font-size:large;}
  27.                     '''
  28.  
  29.  
  30.     def print_version(self, url):
  31.         id_start = url.rfind('2010') - 6
  32.         id_end = id_start +  5
  33.         id = url[id_start : id_end]
  34.         result = 'http://www.scinexx.de/inc/artikel_drucken.php?id=' + id + '&a_flag=1'
  35.         return result
  36.