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

  1. __license__ = 'GPL v3'
  2. __copyright__ = '2010, BlonG'
  3. '''
  4. avto-magazin.si
  5. '''
  6. from calibre.web.feeds.news import BasicNewsRecipe
  7. class Dnevnik(BasicNewsRecipe):
  8.   title = u'Avto Magazin'
  9.   __author__ = u'BlonG'
  10.   description = u'Za avtomobilisti\xc4\x8dne frike, poznavalce in nedeljske \xc5\xa1oferje.'
  11.   oldest_article = 7
  12.   max_articles_per_feed = 20
  13.   labguage = 'sl'
  14.   no_stylesheets = True
  15.   use_embedded_content = False
  16.   language = 'sl'
  17.  
  18.   conversion_options = {'linearize_tables' : True}
  19.  
  20.  
  21.   cover_url = 'https://sites.google.com/site/javno2010/home/avto_magazin_cover.jpg'
  22.  
  23.   extra_css = '''
  24.     h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  25.     h2{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  26.     p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
  27.     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
  28.     '''
  29.  
  30.   keep_only_tags = [
  31.     dict(name='div', attrs={'id':'_iprom_inStream'}),
  32. #    dict(name='div', attrs={'class':'entry-content'}),
  33.     ]
  34.  
  35.   remove_tags = [
  36.     dict(name='div', attrs={'id':'voteConfirmation'}),
  37.     dict(name='div', attrs={'id':'InsideVote'}),
  38.     dict(name='div', attrs={'class':'Zone234'}),
  39.     dict(name='div', attrs={'class':'Comments'}),
  40.     dict(name='div', attrs={'class':'sorodneNovice'}),
  41.     dict(name='div', attrs={'id':'footer'}),
  42.     ]
  43.  
  44.  
  45.   feeds = [
  46.     (u'Novice', u'http://www.avto-magazin.si/rss/')
  47.     ]
  48.