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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1305567197(BasicNewsRecipe):
  4.     title          = u'Cosmopolitan.de'
  5.     __author__  = 'schuster'
  6.     oldest_article = 7
  7.     language = 'de'
  8.     max_articles_per_feed = 100
  9.     no_stylesheets         = True
  10.     use_embedded_content   = False
  11.     remove_javascript      = True
  12.     cover_url = 'http://www.cosmopolitan.com/cm/shared/site_images/print_this/cosmopolitan_logo.gif'
  13.     remove_tags_before =  dict(name = 'h1', attrs={'class':'artikel'})
  14.     remove_tags_after = dict(name ='div', attrs={'class':'morePages'})
  15.     extra_css = '''
  16.                     h2{font-family:Arial,Helvetica,sans-serif; font-size: x-small;}
  17.                     h1{ font-family:Arial,Helvetica,sans-serif;  font-size:x-large; font-weight:bold;}
  18.                 '''
  19.     remove_tags = [    dict(id='strong'),
  20.            dict(title='strong'),
  21.                                            dict(name='span'),
  22.            dict(name='li', attrs={'class':'large'}),
  23.            dict(name='ul', attrs={'class':'articleImagesPortrait clearfix'}),
  24.            dict(name='p', attrs={'class':'external'}),
  25.            dict(name='a', attrs={'target':'_blank'}),]
  26.     feeds          = [  (u'Komplett', u'http://www.cosmopolitan.de/rss/allgemein.xml'),
  27.         (u'Mode', u'http://www.cosmopolitan.de/rss/mode.xml'),
  28.         (u'Beauty', u'http://www.cosmopolitan.de/rss/beauty.xml'),
  29.         (u'Liebe&Sex', u'http://www.cosmopolitan.de/rss/liebe.xml'),
  30.         (u'Psychologie', u'http://www.cosmopolitan.de/rss/psychologie.xml'),
  31.         (u'Job&Karriere', u'http://www.cosmopolitan.de/rss/job.xml'),
  32.         (u'Lifestyle', u'http://www.cosmopolitan.de/rss/lifestyle.xml'),
  33.         (u'Shopping', u'http://www.cosmopolitan.de/rss/shopping.xml'),
  34.         (u'Bildergalerien', u'http://www.cosmopolitan.de/rss/bildgalerien.xml')]
  35.