oyez-api-wrapper 0.0.3

Creator: railscoder56

Last updated:

Add to Cart

Description:

oyezapiwrapper 0.0.3

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!

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.