Skip to content

Instantly share code, notes, and snippets.

View ClearlyKyle's full-sized avatar
🏍️

Kyle ClearlyKyle

🏍️
View GitHub Profile
@ClearlyKyle
ClearlyKyle / STR_to_Sentences.py
Created October 8, 2020 21:11
Using pysrt to convert a SRT file to a list of sentences.
import pysrt
import os
output_folder_name = "txt"
try:
os.mkdir("./{}".format(output_folder_name))
except OSError:
pass # already exists