go-tika

module
v0.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2017 License: Apache-2.0

README

go-tika

go-tika is a Go client library and command line utility for accessing the Apache Tika Server API.

go-tika requires Go version 1.7 or greater.

See the godoc for more documentation on what resources are available.

Command line client

The tika binary allows you to access the Apache Tika Server API from the command line, including downloading and starting the server in the background.

To get the binary, run:

go get -u github.com/google/go-tika/cmd/tika

To download the Apache Tika 1.14 Server, check the MD5 sum, start the server in the background, and parse a file, run:

$GOPATH/bin/tika -filename /path/to/file/to/parse -download_version 1.14 parse

This will store tika-server-1.14.jar in your current working directory. If you want to control the output location of the JAR, add a -server_jar /path/to/save/tika-server.jar argument.

If you already have a downloaded Apache Tika Server JAR, you can specify it with the -server_jar flag and it will not be re-downloaded.

If you already have a running Apache Tika Server, you can use it by adding the -server_url flag and omitting the -server_jar and -download_version flags.

See $GOPATH/bin/tika -h for usage instructions.

License

This library is distributed under the Apache V2 License. See the LICENSE file.

Contributing

Please see the CONTRIBUTING.md file.

Disclaimer

This is not an official Google product.

Directories

Path Synopsis
cmd
tika
The tika command provides a command line interface for Tika Server.
The tika command provides a command line interface for Tika Server.
Package tika provides a client and server for downloading, starting, and using Apache Tika's (http://tika.apache.org) Server.
Package tika provides a client and server for downloading, starting, and using Apache Tika's (http://tika.apache.org) Server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL