View Single Post
Old 12-18-2011, 06:18 AM   #1
timewolf
Junior Member
timewolf began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2011
Device: Kindle 4
Recipe Request: avmagazine.it

Hi all,

I'm trying to make a recipe for avmagazine.it, an Italian hifi news.

It has 2 different rss: news and articles, and 2 different print versions

avmagazine.it/articoli/stampa
and
avmagazine.it/news/stampa

i wrote

Code:
   def print_version(self, url):

        if (url.find("/articoli/") ):
            return url.replace('/articoli/', '/articoli/stampa/')
        else: 
            return url.replace('/news/', '/news/stampa/')
but it doesn't work... it replace only articoli.

I'm a newbie...where im doing wrong?

thanks

Fabio
timewolf is offline   Reply With Quote