View Single Post
Old 08-15-2011, 06:15 PM   #3
ricardoff
Junior Member
ricardoff began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: Kindle 3
This is what I tried to do:

RSS: http://www.internationalviewpoint.or...p?page=backend

Article: http://www.internationalviewpoint.or...hp?article2242

Print version: http://www.internationalviewpoint.or...d_article=2242

Code I used:
Code:
class AdvancedUserRecipe1313445974(BasicNewsRecipe):
    title          = u'International Viewpoint'
    oldest_article = 90
    max_articles_per_feed = 100

    feeds          = [(u'Articles', u'http://www.internationalviewpoint.org/spip.php?page=backend')]

def print_version(self, url):
      return url.replace('http://www.internationalviewpoint.org/spip.php?article', 'http://www.internationalviewpoint.org/spip.php?page=print_article&id_article=')
Why isn't it working? It gets the articles, but then it'll show links etc. and not the entire article.

Last edited by Starson17; 08-17-2011 at 09:37 AM. Reason: add code tags
ricardoff is offline   Reply With Quote