AyOK-Code / oscn_scraper

MIT License
1 stars 1 forks source link

Add ability to scrape one off cases #31

Closed holdenmitchell closed 1 year ago

holdenmitchell commented 1 year ago

Description

Implements the Search functionality from the OSCN website. This allows for scraping one-off cases by searching based on parameters of the case. Searching with a county will not mimic the Search functionality by county. This is because we want to be able to capture the unique cmid for the case that is displayed in the link:

https://www.oscn.net/dockets/GetCaseInformation.aspx?db=tulsa&number=CF-2014-300&cmid=2697158

Using the county in the search query will redirect you directly to the case if there is only one case for that county and without the cmid in the URL.

If multiple cases show up under a single county, it the search will return multiple json objects.

There is a small adjustment on the OSCN side based on the changes to the Link Parser in this PR: https://github.com/AyOK-Code/oscn/pull/152

github-actions[bot] commented 1 year ago

Simplecov Report

Covered Threshold
100% 90%