I'm trying to extract Hebrew text from a Bible in OpenDocument Text (odt) format with the following code:
from odf import text, teletype
from odf.opendocument import load
textdoc = load("Heb-OT.odt")
texts = textdoc.getElementsByType(text.P)
alltext=teletype.extractText(texts[0])
print alltext
This does not print anything I don't know what's wrong. The document is very long (1000 pages) but I need to search it all.