I am trying to get video subtitle data, for that I am using downsub.
There is no way I have figured out to get clean subtitle, without HTML tags and timestamps, without taking it to notepad and doing replace procedure as appropriate.
This is cumbersome and I want to automate the cleaning process using python.
https://colab.research.google.com/drive/1bbgbjbGF9bjzz3FISMfycSW4iHCj3pxk
I am looking for a really really simple solution that anyone can comprehend with just basic knowledge of Python. I'm open to using the API if need be, but if this takes long, manual cleaning is still only taking a few minutes if done quickly. Automation would be nice though; would relieve a headache. With this considered, please propose a good and nice solution.
html_string.replace('<div>', ''))
– Zulfiqaar Feb 12 '19 at 10:42