Giter Club home page Giter Club logo

pa-evictions's Introduction

Purpose

An alternative interface for searching the Unified Judicial System of PA's Web Portal (PA Portal).

This application specifically searches for Landlord/Tenant Dockets filed by Magisterial District Judge 03-2-10 during the provided search period.

Search Criteria

  • A docket search is performed using the PA Portal's "Filed Date" option

  • The PA Portal only allows searches in 180-day intervals. If an interval greater than 180 days is provided to this application it will perform multiple searches in no more than 180-day intervals.

  • Search start and end dates are inclusive

Gotchas

  • The PA Portal rate limits request from a single IP address. At the time of writing PA has not published an API guide and the rate limit is unknown.

    • If you see ERROR level log message containing "status code 429, reason Unauthorized request" it means you have reached your rate limit and the PA Portal is denying requests for PDF dockets
    • If this happens, it is best to stop the process (Control+C or CMD+C), wait a few minutes, and try the search again with a smaller interval
    • You will need to manually merge files if multiple searches are required
  • In an attempt to prevent hitting the rate limit this app will

    • Pause for 2 seconds between requests and
    • Pause for 45 seconds every 15th request
    • These values are complete arbitrary and don't always work, but for most searches that are an interval of 16 to 30 days it seems ok.

How to use

This project compiles to an executable JAR. To run open a terminal and run java -jar pa-evictions.jar --startDate=2016-01-01 --endDate=2016-06-30

pa-evictions's People

Contributors

wlokes avatar

Stargazers

 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.