似乎无法获取用户通过PRAW订阅subreddit的日期,但是是否可以获取特定subreddit中用户的第一条评论?
答案 0 :(得分:1)
我能想到的唯一方法是解析他的所有注释并过滤掉对该特定subreddit所做的注释。然后,您可以根据comment.created_utc
对列表进行排序,并获取最早的评论。
您可以解析用户的所有评论,并过滤特定subreddit中的评论,就像这样-
user = reddit.redditor('username')
target_subreddit = 'target_subreddit'
comment_list = []
# This iterates over all the comments made by the user
for comment in user.comments.new(limit=None):
# Check if a comment belongs to your target subreddit
if str(comment.subreddit) == target_subreddit:
comment_list.append(comment)
# Sort comment_list based on comment.created_utc to get the oldest comment
...