Avatar of Shailesh Shinde
Shailesh Shinde
Flag for India

asked on 

Text file to excel conversion using python

Hi All,

I have an requirement to convert/extract the contents from the text file into excel file using python script.
input text file format...
1
00:00:04,195 --> 00:00:06,140
This text needs to be extracted.

2
00:00:04,195 --> 00:00:06,140
This text needs to be extracted.

3
00:00:04,195 --> 00:00:06,140
This text needs to be extracted.

.....

Open in new window


and the output excel file format...
Column1  Column2
This text needs to be extracted. This text needs to be extracted.
This text needs to be extracted. This text needs to be extracted.
This text needs to be extracted. This text needs to be extracted.

Open in new window


Can you please suggest the reference or sample code for this.

Thanks,
Shail
Python

Avatar of undefined
Last Comment
Shailesh Shinde

8/22/2022 - Mon