__license__ = 'GPL v3' __copyright__ = '2014, Darko Miletic ' ''' www.hollywoodreporter.com ''' from calibre.web.feeds.news import BasicNewsRecipe class THR_En(BasicNewsRecipe): title = 'The Hollywood Reporter' __author__ = 'Darko Miletic' description = 'Read about the latest in Hollywood and entertainment news from The Hollywood Reporter, your source for detailed movie reviews, celebrity styles, and industry blogs.' # noqa publisher = 'The Hollywood Reporter' category = 'Entertainment news, Hollywood news, celebrity news, latest Hollywood news' oldest_article = 2 max_articles_per_feed = 200 no_stylesheets = True encoding = 'utf8' use_embedded_content = False language = 'en' remove_empty_feeds = True publication_type = 'newsportal' auto_cleanup = True auto_cleanup_keep = "//div[contains(concat(' ', normalize-space(@class), ' '), ' image ')]" extra_css = """ body{font-family: Georgia,Times,serif} h1,h2,h3{font-family: "Vonness-Bold-Compressed",Helvetica,sans-serif} .credit,.caption{font-family: Arial,sans-serif;} .credit,.caption,.submitted{font-size: small; color: gray;} .main_media_credit{clear: left; font-size: x-small; text-align: right; color: gray;} img{margin-top: 0.5em; margin-bottom: 0.4em; display:block} """ conversion_options = { 'comment': description, 'tags': category, 'publisher': publisher, 'language': language } feeds = [ (u'Movies', u'http://feeds.feedburner.com/thr/film'), (u'TV', u'http://feeds.feedburner.com/thr/television'), (u'Style&Culture', u'http://feeds.feedburner.com/thr/style'), (u'International', u'http://feeds.feedburner.com/thr/international'), (u'Music', u'http://feeds.feedburner.com/thr/music'), (u'Tech', u'http://feeds.feedburner.com/TheHollywoodReporter-Technology'), (u'Awards', u'http://feeds.feedburner.com/thr/awards'), (u'Business', u'http://feeds.feedburner.com/thr/business'), (u'Asia', u'http://feeds.feedburner.com/HollywoodReporterAsia'), (u'Guilds and Labor', u'http://feeds.feedburner.com/thr/labor'), (u'Box Office', u'http://feeds.feedburner.com/thr/boxoffice'), (u'Real Estate', u'http://feeds.feedburner.com/thr/RealEstate'), (u'Politics', u'http://feeds.feedburner.com/thr/politics') ]