我正在尝试使用 Praw 获取 Reddit 提交标题中链接的帖子。例如提交 http://www.reddit.com/r/AdviceAnimals/comments/1adu71/apparently_people_still_need_to_hear_this/链接到此image http://i.qkme.me/3te2bn.jpg。我尝试找出一种方法从提交对象在PRAW然而,即使浏览源代码我也无法找到此信息。这看起来应该很容易,所以我可能会错过一些东西。
非常感谢您的帮助。
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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)