Git Product home page Git Product logo

go-tika's Introduction

go-tika

Go Reference

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

See https://pkg.go.dev/github.com/google/go-tika 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 install github.com/google/go-tika/cmd/tika@latest

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

$(go env 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 $(go env 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.

Use goimports to format code and make sure the go.mod/go.sum files are up to date with go mod tidy.

Disclaimer

This is not an official Google product.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.