Help get the URL associated with the Reddit post With PRAW

Using Praw, I am trying to get the message associated with the name of the Reddit view. For example, the transfer refers to this image . I tried to figure out a way to extract this information from the Submission object in PRAW , however, even when viewing the source, I could not find this information. It seems like it should be easy, so I can miss something.

Many thanks for your help.

+4
source share
2 answers
import praw user_agent = praw.Reddit("my_cool_user_agent") link = "http://www.reddit.com/r/AdviceAnimals/comments/" + \ "1adu71/apparently_people_still_need_to_hear_this/" submission = user_agent.get_submission(link) print submission.url 
+12
source
 import praw r = praw.Reddit(user_agent='Test Script') submissions = r.get_subreddit('wtf').get_top(limit=10) for item in submissions: print item.url 
+4
source