I'm trying to clean up my recipe for the the Smarter Planet | Tumblr site (I'm using the mobile RSS as the source
http://smarterplanet.tumblr.com/mobile/rss
But I can't seem to find the right way to strip out the "about" content, disqus comment system, footer etc. that is cropping up after each post...I really just want to bundle up the posts as cleanly by themselves as possible. Am I missing something obvious or simple?
Here's the section I'm trying to eliminate with remove tag code... my full recipe is at the end. Many thanks Calibre team for such an amazing tool.
One other question...how do we best share the recipe or make it easy for people to discover and put it to use?
We're moving from the "World Wide Web" to a "Web Wide World"
one that is instrumented, interconnected and intelligent.
New Intelligence Internet of Things Cities * Water
Healthcare * Energy Traffic * Food Buildings * Telecom Safety * Retail
IT Infrastructure Banking * Education Work * Government Products * Rail Cloud Computing Oil
Home
Archive
Random
Follow Us!
About
Smarter Planet Widgets
Got a Smarter Planet Question? Ask Here
Scaffold theme by Mike Harding.
RSS feed
Random
Mobile
Powered by Tumblr
Code:
class AdvancedUserRecipe1293122276(BasicNewsRecipe):
title = u'Smarter Planet | Tumblr for eReaders'
oldest_article = 7
max_articles_per_feed = 30
no_stylesheets = True
use_embedded_content = False
masthead_url = 'http://30.media.tumblr.com/tumblr_l70dow9UmU1qzs4rbo1_r3_250.jpg'
remove_tags_before = dict(name='h1')
remove_tags = [dict(name='div', attrs={'id':'sidebar'})]
remove_tags = [dict(name='div', attrs={'id':'about'})]
remove_tags = [dict(name='div', attrs={'id':'footer'})]
remove_tags = [dict(name='div', attrs={'id':'disqus'})]
remove_tags = [dict(name='div', attrs={'id':'disqus_thread'})]
remove_tags = [dict(name='div', attrs={'id':'nav'})]
remove_tags = [dict(name='div', attrs={'id':'notes'})]
remove_tags = [dict(name='div', attrs={'id':'description'})]
remove_tags = [dict(name='div', attrs={'id':'likes_container'})]
feeds = [(u'Smarter Planet Tumblr', u'http://smarterplanet.tumblr.com/mobile/rss')]