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

  1. # coding: utf-8
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, BlonG'
  4. '''
  5. www.siol.si
  6. '''
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8. class Siol(BasicNewsRecipe):
  9.     title = u'Siol.net'
  10.     __author__ = u'BlonG'
  11.     description = "Multimedijski portal z aktualnimi vsebinami, intervjuji, komentarji iz Slovenije in sveta, sportal, trendi, avtomoto, blogos"
  12.     oldest_article = 3
  13.     language = 'sl'
  14.     max_articles_per_feed = 20
  15.     no_stylesheets = True
  16.     use_embedded_content = False
  17.  
  18.     cover_url = 'https://sites.google.com/site/javno2010/home/siol_cover.jpg'
  19.  
  20.     extra_css = '''
  21.                     h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  22.                     h2{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  23.                     p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
  24.                     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
  25.     '''
  26.  
  27.     html2lrf_options = ['--base-font-size', '10']
  28.  
  29.     keep_only_tags = [
  30.     dict(name='div', attrs={'id':'idContent'}),
  31.     ]
  32.  
  33.     remove_tags  = [
  34.     dict(name='span', attrs={'class':'com1'}),
  35.     dict(name='div', attrs={'class':'relation'}),
  36.     dict(name='p', attrs={'class':'path'}),
  37.     dict(name='div', attrs={'class':'clear_r'}),
  38.     dict(name='div', attrs={'id':'appendix'}),
  39.     dict(name='div', attrs={'id':'rail'}),
  40.     dict(name='div', attrs={'id':'div_comments'}),
  41.     dict(name='div', attrs={'class':'thumbs'}),
  42.     ]
  43.  
  44.     feeds          = [
  45.     (u'Slovenija', u'http://www.siol.net/rss.aspx?path=Slovenija')
  46.     ,(u'Lokalne novice', u'http://www.siol.net/rss.aspx?path=Slovenija/Lokalne_novice')
  47.     ,(u'EU', u'http://www.siol.net/rss.aspx?path=EU')
  48.     ,(u'Svet', u'http://www.siol.net/rss.aspx?path=Svet')
  49.     ,(u'Gospodarstvo', u'http://www.siol.net/rss.aspx?path=Gospodarstvo')
  50.     ,(u'Sportal', u'http://www.siol.net/rss.aspx?path=Sportal')
  51.     ,(u'Trendi', u'http://www.siol.net/rss.aspx?path=Trendi')
  52.     ,(u'Avtomoto', u'http://www.siol.net/rss.aspx?path=Avtomoto')
  53.     ,(u'Tehnologija', u'http://www.siol.net/rss.aspx?path=Tehnologija')
  54.     ,(u'TV / Film', u'http://www.siol.net/rss.aspx?path=TV')
  55.     ]
  56.