How to read an .odt file from an url? I am not able to achieve that at the moment.
I tried this code
from ODTReader.odtreader import odtToText
url="https://abc.s3.ap-south-1.amazonaws.com/sample1.odt"
docs = BytesIO(requests.get(url).content)
odt_text = odtToText(docs)
print("odt_text ",odt_text)
but its giving me error
File "C:\ProgramData\Anaconda3\lib\site-packages\ODTReader\odtreader.py", line 24
print "Could not find 'content.xml': {}".format(str(e))
^
SyntaxError: invalid syntax