
from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1293122276(BasicNewsRecipe):
    title = u'Smarter Planet | Tumblr'
    __author__ = 'Jack Mason'
    author = 'IBM Global Business Services'
    publisher = 'IBM'
    language = 'en'
    category = 'news, technology, IT, internet of things, analytics'
    oldest_article = 14
    max_articles_per_feed = 30
    no_stylesheets = True
    use_embedded_content = False
    masthead_url = 'http://www.hellercd.com/wp-content/uploads/2010/09/hero.jpg'
    remove_tags_before = dict(id='item')
    remove_tags_after = dict(id='item')
    remove_tags = [dict(attrs={'class': ['sidebar', 'about', 'footer', 'description,' 'disqus', 'nav', 'notes', 'disqus_thread']}),
                   dict(id=['sidebar', 'footer', 'disqus', 'nav', 'notes',
                            'likes_container', 'description', 'disqus_thread', 'about']),
                   dict(name=['script', 'noscript', 'style'])]

    feeds = [(u'Smarter Planet Tumblr',
              u'http://smarterplanet.tumblr.com/mobile/rss')]
