ffi-extractor¶ ↑
-
[Email](postmodern.mod3 at gmail.com)
Description¶ ↑
Ruby FFI
bindings to libextractor, a library for extracting metadata from a variety of file formats.
libextractor is a simple library for keyword extraction. libextractor does not support all formats but supports a simple plugging mechanism such that you can quickly add extractors for additional formats, even without recompiling libextractor. libextractor typically ships with a dozen helper-libraries that can be used to obtain keywords from common file-types.
libextractor is a part of the GNU project.
Examples¶ ↑
require 'ffi/extractor' FFI::Extractor.extract(data) do |plugin,type,format,mime_type,data| # ... end FFI::Extractor.extract_from(path) do |plugin,type,format,mime_type,data| # ... end
Requirements¶ ↑
-
libextractor >= 0.6.0
-
ffi ~> 1.0
Install¶ ↑
$ gem install ffi-extractor
Fedora¶ ↑
$ sudo yum install libextractor libextractor-plugins
Ubuntu¶ ↑
$ sudo apt-get install libextractor libextractor-plugins
OSX¶ ↑
$ sudo brew install libextractor
Copyright¶ ↑
ffi-extractor - Ruby FFI
bindings for libextractor
Copyright © 2012 - Hal Brodigan (postmodern.mod3 at gmail.com)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA