Giter Site home page Giter Site logo

docsplitter's Introduction

Need to extract text from hundreds or thousands of PDFs? You can emulate the core capabilities of DocumentCloud for OCRing them without abusing its servers and without limitation.

DOCSPLITTER

A Python script for extracting text from large volumes of PDF files using Amazon Web Services (EC2, S3 and SQS).

It spins up a cluster of computers all using a pre-assembled disk image I created that has the PDFtoText and DocSplit software installed. It performs the most substantive portion of what people use DocumentCloud for, but much faster, without requiring an account with them and without putting strain on their servers.

It will put in a spot request bid at 2 cents an hour per machine, and you will be responsible for the charges. Input your AWS credentials in aws_demo.py and rename it to aws.py.

Then look at demo.py. Basically, just give it one list of tuples with a primary key and URL to PDF, from your database or a CSV, wait a while, then retrieve tuples with the ID and extracted text, to update your database or save somewhere. The text files will also remain on your AWS bucket unless you remove them.

By Luke Rosiak of The Washington Times. Released under the same terms as DocumentCloud.

The only requirement you need on your computer is boto, the python library for interacting with AWS.

docsplitter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gsdu8g9

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.