Add a short description here!
Project description
nswcaselaw
A Python toolkit for downloading and extracting textual data from the NSW CaseLaw website at https://www.caselaw.nsw.gov.au/
Usage
Sample usage in Python code or a Jupyter notebook:
from nswcaselaw.search import Search import json query = Search(courts=[13], catchwords="succession") for decision in query.results(): decision.fetch() print(json.dumps(decision.values, indent=2))
CLI tool
To generate a CSV of search results:
nswcaselaw --courts 13 --catchwords succession --output cases.csv
To download complete decisions as JSON documents:
nswcaselaw --courts 13 --catchwords succession --output cases.csv --downloads ./decisions
To list available courts and tribunals (NOTE: full web scraping is only tested on Supreme Court decisions):
nswcaselaw --list courts nswcaselaw --list tribunals
Note
This project has been set up using PyScaffold 4.3. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nswcaselaw-0.1.0.tar.gz
(42.7 kB
view hashes)
Built Distribution
nswcaselaw-0.1.0-py3-none-any.whl
(14.4 kB
view hashes)
Close
Hashes for nswcaselaw-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1d2abb56a2e46da9e1ca9e243c4934c4a356a354315e0367763156108732355 |
|
MD5 | 3e15bc1f69e9d0360b45967bce625bdb |
|
BLAKE2b-256 | e0c6de92f088a66c59e9ea7555bfe02018d604b678dc101a0416488c5849fcad |