PRAW: How to get a reddit comment object with just the comment ID?

Viewed 5157

I'm working on a bot where I only have the comment IDs, e.g., t1_asdasd. I don't have access to the parent thread or anything. Can I pull the corresponding comment object with just the comment ID?

2 Answers

praw.Reddit doesn't seem to have .get_info() anymore, so the answer above is no longer valid

Found that this returns the required comment:

comment_id = some_comment.id.split("_")[1]
praw.Reddit(required credentials).comment(id=comment_id)
Related