完成:
parser-tika.py
import tika
from tika import parser
parsed = parser.from_file('/path/to/file')
print parsed["metadata"]
print parsed["content"]
错误: ImportError:无法导入名称解析器
env setup:
TIKA_VERSION=1.13.1
TIKA_SERVER_JAR=~/parserDev/tika/tika-server-1.13.jar
TIKA_SERVER_ENDPOINT=http://localhost:8989/tika