Quote:
Originally Posted by yoss15
OK so I've tried to do what I can to make my own recipe but I have no experience with this at all besides some basic knowledge of HTML.
Here is what I have so far
Code:
lass AdvancedUserRecipe1310393888(BasicNewsRecipe):
title = u'World Socialist Web Site'
oldest_article = 7
max_articles_per_feed = 100
feeds = [(u'World Socialist Web Site', u'http://www.wsws.org/rss/en.xml')]
def print_version(self, url):
return url.replace('http://', 'http://wsws.org/tools/index.php?page=print&url=')
remove_tags_before = dict(id='page')
remove_tags_after = dict(id='page')
The remove tags lines don't seem to be working for me, I'm not sure what I'm doing wrong, any ideas?
|
You're missing the "c" in class and the def print_version, and both removes must be indented to the level of "title."