Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with codecs.open("CMHOCPosts.txt", "w", "utf-8") as file:
- for x in list(y for y in subreddit.submissions(1417467380, 1508360180)):
- if(x.link_flair_text in blist):
- print(x.title)
- x.comments.replace_more(limit=0)
- for comment in x.comments.list():
- file.write(x.title + "/" + (x.author.name if isinstance(x.author, praw.models.reddit.redditor.Redditor) else "Unknown") + "\r\n" + "Content: " + comment.body + "\r\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement