Reddit API工作不正常

2024-04-27 23:13:06 发布

您现在位置:Python中文网/ 问答频道 /正文

的起伏属性praw.Objects.Comments注释班级工作不正常。而不是显示总票数praw.Objects.Comments注释.ups显示了赞成票和反对票之间的差异。是否仍有访问此信息的权限?你知道吗

import praw
reddit = praw.Reddit("hackers")
subreddit  = reddit.get_subreddit( "pics" )
top_submissions = subreddit.get_top()
top_submission = next(top_submissions)
first_comment = top_submission.comments[0] 
print(first_comment.ups, first_comment.downs, first_comment.score)


Tags: submissionget属性objectstopcommentcommentsfirst