Giter Club home page Giter Club logo

legaldocketextractor's Introduction

LegalDocketExtractor

The LegalDocketExtractor is a tool for automating the download of docket PDF files from Delco Court systems. The main purpose of this tool is to extract Mortgage Foreclosure Complaints in Delaware County.

Extracting Mortgage Foreclosure Complaints in Delaware County using Selenium

This tool uses Python and the following modules:

  • time: to add delays between browser operations
  • selenium: to automate browser actions
  • pdfExtract: to extract text from the downloaded PDF file
  • os: to rename and manipulate files

How to use the tool

  1. Install the necessary packages - selenium and pdfminer.
  2. Update the URL variable to match the Delaware County Public Access website.
  3. Set the pdf_dir variable to the directory in which to save downloaded PDF files.
  4. Set the path_to_images variable to the directory in which to save extracted images.
  5. Set the pattern variable to match the information to extract from the complaint.
  6. Set the download_folder variable to the path of the folder to download files.
  7. Run the script to download and extract information from the complaint.

Requirements

In addition to the necessary packages, tessarct must also be installed for using OCR to read the PDF documents. PDF files are initially encrypted which prevents direct OCR. To bypass this issue, a module has been created to use poppler to convert each PDF page into an image file. Then, the module will iterate through all of the image files and use tesseract OCR to read and extract the text from the documents as needed.

legaldocketextractor's People

Contributors

rwensel avatar

Watchers

 avatar

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.