View Single Post
Old 07-11-2011, 02:09 PM   #3
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by yoss15 View Post
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."
Starson17 is offline   Reply With Quote