What is court records scraping?
It is software that collects records from pages made for people. It is different from bulk data or an API, where the court hands over the records in a set form.
Use the court's own data if it has what you need. If you have not picked a way yet, start here:
How to automate county court lookups when the site has no API
What should you check before scraping a court site?
Check the terms, the court's own data, and how you plan to use the records. Do this for each site.
- The terms. Some sites limit automated use.
- Bulk data or an API. Ask the clerk if you cannot find it.
- Permission. Asking the court can help. A Georgetown team spoke with the court in Franklin County, Ohio, before it scraped the court's site. It tells others to reuse its code if they have a court's permission.
- The pace. Keep it close to what a person would do.
- Your use. Rules differ by state and record type. Ask your own lawyer.
Georgetown Justice Lab: data and code
This is not legal advice.
How does a court scraper work?
A court scraper does the same steps a person does, then checks what it got.
Search
It types in a name, a case number, or dates.
Match the case
It compares the results with what you know. A weak match goes to a person.
Open the case
It reads the case page and finds the right document.
Download
It saves the document with the case.
Read
A scan goes through text reading (OCR) first. Then the fields are pulled out.
Save
Every record goes into one format.
Check
Missing or unsure fields are set aside.
What gets in the way?
Court sites are built for people, so the trouble is often in the site and not in the data. Here is what to look for.
| Problem | What happens | What to do |
|---|---|---|
| A CAPTCHA | The site checks that a person is there | Read the terms, and ask the court what it allows |
| Blocked servers | The site turns away traffic from a scraping service | Same, before you go further |
| A login | Records need an account | Read the account rules first |
| Search limits | Results stop at a set count | Use smaller searches |
| Sessions | The page times out partway | Start that record again |
| Scans | There is no text to copy | Read it with OCR, and flag unclear pages |
| A redesign | Buttons and pages move | Fix that county's scraper |
On the county job I run, I have met two of these: a Cloudflare Turnstile CAPTCHA, and a site that blocked the servers of the scraping service.
Some records are not online at all. Nieman Lab reports that some courts still have records that are not digitized. Software cannot scrape those.
Should you use a ready-made scraper or a custom one?
Use a ready-made scraper if it covers your court and gives you the fields you need. Build when it does not, or when one record takes two sites.
Open source code is another start. A Python tool called court-scraper can search by case number, and by date on some sites. Its docs say it gives you raw files, so you still pull out the fields. The newest release on its package page is from December 2022.
Public-record lead data: buy it, scrape it, hire for it, or build it?
How do you keep a court scraper running?
Plan for failure from the first day. The county court job I run for a lead company covers Seminole and Broward in Florida and Tarrant in Texas. The three counties come to about 250 to 300 records a day.
- Each county has its own scraper. A change on one site does not stop the others.
- One bad record never stops the run. It is set aside.
- No guessing. If the court record or address cannot be found, it goes in its own list.
- An email goes out at once when a step breaks.
- A person checks every record before it goes out.
How to keep a human in the loop when you automate records work
Who can build a court records scraper?
Your own developer can, or a vendor, or a builder you hire. Quit Clicking builds them one county at a time, in your own accounts. The free Check tells you which of your courts can be done.