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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. sciencedaily.com
  7. '''
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class ScienceDaily(BasicNewsRecipe):
  11.     title                 = u'ScienceDaily'
  12.     __author__            = u'Darko Miletic'
  13.     description           = u"Breaking science news and articles on global warming, extrasolar planets, stem cells, bird flu, autism, nanotechnology, dinosaurs, evolution -- the latest discoveries in astronomy, anthropology, biology, chemistry, climate & environment, computers, engineering, health & medicine, math, physics, psychology, technology, and more -- from the world's leading universities and research organizations."
  14.     oldest_article        = 7
  15.     language = 'en'
  16.  
  17.     max_articles_per_feed = 100
  18.     no_stylesheets        = True
  19.     use_embedded_content  = False
  20.     
  21.     cover_url = 'http://www.sciencedaily.com/images/logo.gif'
  22.     
  23.     keep_only_tags = [ 
  24.                         dict(name='h1', attrs={'class':'story'}) 
  25.                        ,dict(name='div', attrs={'id':'story'}) 
  26.                      ]
  27.                      
  28.     remove_tags_after = dict(name='div', attrs={'id':'citationbox'})
  29.     remove_tags = [
  30.                      dict(name='div', attrs={'id':'seealso'})
  31.                     ,dict(name='div', attrs={'id':'citationbox'})
  32.                   ]
  33.     
  34.     feeds       = [(u"ScienceDaily", u'http://www.sciencedaily.com/newsfeed.xml')]
  35.