Last active
October 16, 2020 04:06
-
-
Save evmcheb/003d589bd32fc06f8e77fe264b623cbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Grabs the best comments and splits into parts | |
import praw, re | |
r = praw.Reddit() | |
thread = r.submission(url=URL) | |
thread.comment_sort = 'best' # get the best comments from the thread | |
for comment in thread.comments: | |
punctuation_reg = re.compile('(?<=[.!,?:;-]) +') | |
split_parts = punctuation_reg.split(comment.body) | |
parts = list(filter(None, split_parts)) | |
# create image from parts |
Hi. Me too I'm interested in the full code. Can you share it please?
Hello, If you could provide the whole file for this portion of the project, that would make my world. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, can you share the entire project? To convert text to image and hen render and TTS etc