biglocalnews / court-scraper

Scrapers for U.S. county court sites.
ISC License
57 stars 18 forks source link

Support for MO #184

Open AngryNorseMan opened 1 year ago

AngryNorseMan commented 1 year ago

It does appear that they don't like bots hitting /casenet/ so guessing this is probably why MO hasn't been added in here yet, at least I've not seen mention. https://www.courts.mo.gov/robots.txt

This is the main search page: https://www.courts.mo.gov/cnet/nameSearch.do?newSearch=Y

Seems like they're calling javascript methods using the case number and court id in order to pull down specific information:

function openOldCasenetPartyTab(cn, ci){
    window.location.replace("/casenet/cases/parties.do?inputVO.caseNumber="+cn+"&inputVO.courtId="+ci);
}

function openOldChargesTab(cn, ci){
    window.location.replace("/casenet/cases/charges.do?inputVO.caseNumber="+cn+"&inputVO.courtId="+ci);
}

function openOldServicesTab(cn, ci){
    window.location.replace("/casenet/cases/service.do?inputVO.caseNumber="+cn+"&inputVO.courtId="+ci);
}

function openOldFilingsDateTab(cn, ci){
    window.location.replace("/casenet/cases/filings.do?inputVO.caseNumber="+cn+"&inputVO.courtId="+ci);
}

function openOldCivilJudgementTab(cn, ci){
    window.location.replace("/casenet/cases/judgements.do?inputVO.caseNumber="+cn+"&inputVO.courtId="+ci);
}

function openOldGarnishmentTab(cn, ci){
    window.location.replace("/casenet/cases/garnishment.do?inputVO.caseNumber="+cn+"&inputVO.courtId="+ci);
}

seems as though this would be compatible with what your scraper currently does. As I'm still relatively new at writing Python I thought I'd suggest Missouri as a candidate if the robots.txt isn't a blocker...?