From ead6a72a46a5ee3a0700017862516b1a8497b5f4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 26 Aug 2010 13:25:29 -0600 Subject: [PATCH] The TMZ by Tony Stegall --- resources/recipes/tmz.recipe | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 resources/recipes/tmz.recipe diff --git a/resources/recipes/tmz.recipe b/resources/recipes/tmz.recipe new file mode 100644 index 0000000000..8c24fe0c99 --- /dev/null +++ b/resources/recipes/tmz.recipe @@ -0,0 +1,67 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1282101454(BasicNewsRecipe): + title = 'The TMZ' + __author__ = 'Tony Stegall' + description = 'Celeb Gossip and News' + language = 'en' + publisher = 'The TMZ' + category = 'news, celebrity, USA' + oldest_article = 1 + max_articles_per_feed = 100 + no_stylesheets = True + remove_javascript = True + masthead_url = 'http://t0.gstatic.com/images?q=tbn:t43QkABe_BmaWM:http://www.thetreymoore.com/logos/TMZ%20logo%20(crop).JPG' + + extra_css = ''' + h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} + h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;} + p{font-family:Arial,Helvetica,sans-serif;font-size:small;} + body{font-family:Helvetica,Arial,sans-serif;font-size:small;} + ''' + + remove_tags = [ + dict(name='div' , attrs={'id':['sidebar','print-actions'] }) + + ] + + + + + feeds = [ + ('TOP 20', 'http://www.tmz.com/rss.xml'), + ('Exclusives', 'http://www.tmz.com/category/exclusives/rss.xml'), + ('Celeb Justice', 'http://www.tmz.com/category/celebrity-justice/rss.xml'), + ('Celeb Feuds', 'http://www.tmz.com/category/celebrity-feuds/rss.xml'), + ('Politix', 'http://www.tmz.com/category/politix/rss.xml'), + ('Music', 'http://www.tmz.com/category/music/rss.xml'), + ('Movies', 'http://www.tmz.com/category/movies/rss.xml'), + ('TV', 'http://www.tmz.com/category/tv/rss.xml'), + ('Sports', 'http://www.tmz.com/category/TMZsports/rss.xml'), + ('Hook-Ups', 'http://www.tmz.com/category/hook-ups/rss.xml'), + ('Beauty', 'http://www.tmz.com/category/beauty/rss.xml'), + ('Fashion', 'http://www.tmz.com/category/fashion/rss.xml'), + ('Gossip & Rumor', 'http://www.tmz.com/category/gossip-rumors/rss.xml'), + ('Hot Mama', 'http://www.tmz.com/category/hot-mamas/rss.xml'), + ('Party All The Time', 'http://www.tmz.com/category/party-all-the-time/rss.xml'), + ('Ride Me!', 'http://www.tmz.com/category/ride-me/rss.xml'), + ('Stars in Heat', 'http://www.tmz.com/category/stars-in-heat/rss.xml'), + ('Vegas', 'http://www.tmz.com/category/hot-vegas/rss.xml') + ] + + def print_version(self, url): + print_url = url +'print' + return print_url + + + + + + + + + + + + +