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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1282101454(BasicNewsRecipe):
  4.     title = 'The TMZ'
  5.     __author__ = 'Tony Stegall'
  6.     description = 'Celeb Gossip and News'
  7.     language = 'en'
  8.     publisher = 'The TMZ'
  9.     category = 'news, celebrity, USA'
  10.     oldest_article = 1
  11.     max_articles_per_feed = 100
  12.     no_stylesheets = True
  13.     remove_javascript = True
  14.     masthead_url = 'http://t0.gstatic.com/images?q=tbn:t43QkABe_BmaWM:http://www.thetreymoore.com/logos/TMZ%20logo%20(crop).JPG'
  15.  
  16.     extra_css = '''
  17.                     h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  18.                     h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
  19.                     p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
  20.                     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
  21.                 '''
  22.  
  23.     remove_tags = [
  24.                      dict(name='div'  , attrs={'id':['sidebar','print-actions']       })
  25.  
  26.                   ]
  27.  
  28.  
  29.  
  30.  
  31.     feeds          = [
  32.                        ('TOP 20', 'http://www.tmz.com/rss.xml'),
  33.                        ('Exclusives', 'http://www.tmz.com/category/exclusives/rss.xml'),
  34.                        ('Celeb Justice', 'http://www.tmz.com/category/celebrity-justice/rss.xml'),
  35.                        ('Celeb Feuds',  'http://www.tmz.com/category/celebrity-feuds/rss.xml'),
  36.                        ('Politix',  'http://www.tmz.com/category/politix/rss.xml'),
  37.                        ('Music',  'http://www.tmz.com/category/music/rss.xml'),
  38.                        ('Movies',  'http://www.tmz.com/category/movies/rss.xml'),
  39.                        ('TV',  'http://www.tmz.com/category/tv/rss.xml'),
  40.                        ('Sports',  'http://www.tmz.com/category/TMZsports/rss.xml'),
  41.                        ('Hook-Ups',  'http://www.tmz.com/category/hook-ups/rss.xml'),
  42.                        ('Beauty',  'http://www.tmz.com/category/beauty/rss.xml'),
  43.                        ('Fashion',  'http://www.tmz.com/category/fashion/rss.xml'),
  44.                        ('Gossip & Rumor',  'http://www.tmz.com/category/gossip-rumors/rss.xml'),
  45.                        ('Hot Mama',   'http://www.tmz.com/category/hot-mamas/rss.xml'),
  46.                        ('Party All The Time',   'http://www.tmz.com/category/party-all-the-time/rss.xml'),
  47.                        ('Ride Me!',   'http://www.tmz.com/category/ride-me/rss.xml'),
  48.                        ('Stars in Heat',  'http://www.tmz.com/category/stars-in-heat/rss.xml'),
  49.                        ('Vegas',   'http://www.tmz.com/category/hot-vegas/rss.xml')
  50.                     ]
  51.  
  52.     def print_version(self, url):
  53.        print_url = url +'print'
  54.        return print_url
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.