mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
The TMZ by Tony Stegall
This commit is contained in:
parent
db045466c3
commit
ead6a72a46
67
resources/recipes/tmz.recipe
Normal file
67
resources/recipes/tmz.recipe
Normal file
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user