-
-
Save whoizit/c54f916c1c6d78ad5ac88cf4735c9d7d 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
#!/usr/bin/env python3 | |
from sys import argv | |
import pysrt | |
subs = pysrt.open(argv[1]) | |
with open(argv[1] + '.txt', 'w') as f: | |
for x in range(len(subs)): | |
f.write(subs[x].text + '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment