View Single Post
Old 05-15-2011, 10:53 AM   #1
xXxXxXxXxXx
Enthusiast
xXxXxXxXxXx began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
Recipe for cosmopolitan US

J'd like to create recipe for cosmopolitan US

J want to use print version and in order to do that J need to change url of articles.

for instance:

from:

http://www.cosmopolitan.com/sex-love/dating-advice/tips-for-long-distance-relationships?src=rss

to:

http://www.cosmopolitan.com/print-this/tips-for-long-distance-relationships?src=rss

and J don't know how to do this?

any help?

this is source code:
Code:
class AdvancedUserRecipe1305470859(BasicNewsRecipe):
    title          = u'Cosmopolitan'
    oldest_article = 14
    max_articles_per_feed = 100

    feeds          = [(u'Sex & Love', u'http://www.cosmopolitan.com/sex-love/rss/'), (u'Hair & Beauty', u'http://www.cosmopolitan.com/hairstyles-beauty/rss/'), (u'Celebs & Style', u'http://www.cosmopolitan.com/celebrity/rss/'), (u'Secrets & Advice', u'http://www.cosmopolitan.com/advice/rss/')]

Last edited by xXxXxXxXxXx; 05-15-2011 at 11:24 AM.
xXxXxXxXxXx is offline   Reply With Quote