J fix this on my own
Code:
class AdvancedUserRecipe1305547242(BasicNewsRecipe):
title = u'Self Magazine'
oldest_article = 21
max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False
remove_javascript = True
keep_only_tags = [dict(id=['printbody'])]
def print_version(self, url):
return url + '?printable=true'
def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return soup
feeds = [ (u'Healthy, Happiness, Sex and Love', u'http://www.self.com/services/rss/feeds/health.xml'),
(u'Beauty and Style', u'http://www.self.com/services/rss/feeds/beauty.xml'),
(u'Self Recipes', u'http://www.self.com/services/rss/feeds/recipes.xml'),
(u'Fitness and Workouts', u'http://www.self.com/services/rss/feeds/fitness.xml'),
(u'Healthy Stars', u'http://www.self.com/services/rss/feeds/healthystars.xml'),
(u'Lucys Blog', u'http://www.self.com/magazine/blogs/lucysblog/rss.xml'),
(u'Beyond the Beauty Pages', u'http://www.self.com/beauty/blogs/beyondthebeautypages/rss.xml'),
(u'Diet Like Me', u'http://www.self.com/fooddiet/blogs/dietlikeme/rss.xml'),
(u'Eat Like Me', u'http://www.self.com/fooddiet/blogs/eatlikeme/rss.xml'),
(u'SELF Style Secrets', u'http://www.self.com/beauty/blogs/selfstylesecrets/rss.xml'),
(u'SELFy Stars', u'http://www.self.com/magazine/blogs/selfystars/rss.xml'),
(u'Healthy SELF', u'http://www.self.com/services/rss/summary'),
]