非常感谢 !我上班了,
我发现的唯一问题是,在获取特定提交的评论 ID 时,它会返回破碎的评论,
例如
Reddit reddit = new Reddit("USER","PASSWORD");
List<Submission> submissions = reddit.getSubmission(1); //returns 1 submission
for (Submission sub : submissions) {
System.out.println("BEGINNING OF SUBMISSION \n"+sub);
System.out.println(reddit.getCommentsForSubmission(sub.getIdentifier())); //prints out
System.out.println("END OF SUBMISSION \n");
}
此代码将仅打印看起来像这样的第一个评论..
开始提交提交(t3_31qc98)
结束运行
getCommentsForSubmission 看起来像这样……</p>
public List<Comment> getCommentsForSubmission(String subId){
Comments coms = new Comments(getRestClient(), getUser());
List<Comment> commentsSubmission = coms.ofSubmission(subId, null, 0, 8, 20, CommentSort.TOP);
return commentsSubmission;
}
为什么 Jreddit 不打印出整个评论?