Giter VIP home page Giter VIP logo

oyez-api-wrapper's Introduction

Oyez API Wrapper

This library is used to access the API of oyez.org and parse the data into easily usable chunks. All included functions are included below.

Importing the Library & Making an court_case Object

import oyez_api_wrapper

case_obj = oyez_api_wrapper.court_case("2015", "15-278")

The library can be imported and objects can be created using the above syntax. The first argument is the "Year" and the other argument is the "Docket NO.". This information is available on oyez.org under any case.

Class Functions

get_case_judges will return all judges that decided the case.
get_case_facts will return the facts of the case item. The HTML parameter is provided for pretty printing it later.
download_court_json will download the case JSON to the current directory.
get_judge_decisions will return a dictionary of the justices' as keys and their decision (majority/minority).
get_ruling will return a tuple with majority vote, minority vote, winning party, decision type, and a reference to the decision page.
get_basic_info will return a tuple with the case name and both parties in order.
get_legal_question will return the legal question of the case. The HTML parameter is provided for pretty printing it later.
get_conclusion will return the conclusion of the case. The HTML parameter is provided for pretty printing it later.
get_lower_court will return the previous court the case was at before reaching the Supreme Court.
get_audio_links will return a dictionary that is contains the title as the key and the value as the link to listen to the audio available.


The owner of this repo has no relation with oyez.org!

oyez-api-wrapper's People

Contributors

tylzars 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.