I am trying to read a docx file and to add the text to a list. Now I need the list to contain lines from the docx file.
example:
docx file:
"Hello, my name is blabla,
I am 30 years old.
I have two kids."
result:
['Hello, my name is blabla', 'I am 30 years old', 'I have two kids']
I cant get it to work.
Using the docx2txt
module from here:
github link
There is only one command of process and it returns all the text from docx file.
Also I would like it to keep the special characters like ":\-\.\,"