Legal Data
A package for crawling Australian legal data from legislation.com.au and austlii.edu.au with cache support.
Please be respectful of server host resources by using a reasonable crawl delay, honouring robots.txt and crawling at times when the server load is lighter.
Install from PyPi
pip install legaldata
legislation.com.au example
This example will crawl Commonwealth Acts from legislation.com.au and copy files (docx, pdf, zip) to the save path.
from legaldata.legislation.crawler import ActCrawler
crawler = ActCrawler()
save_path = "./legislation.com.au/"
for index_url in crawler.get_index_pages():
acts = crawler.get_acts_from_index(index_url, save_path)
austlii.edu.au example
This example will crawl Commonwealth Acts from austlii.edu.au/ and copy files (rtf, txt) to the save path.
from legaldata.austlii.crawler import ActCrawler
crawler = ActCrawler()
save_path = "./austlii.edu.au/"
for index_url in crawler.get_index_pages():
acts = crawler.get_acts_from_index(index_url, save_path)
Legal Data is distributed under the MIT license.
Metadata
Release files for legaldata 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| legaldata-0.1.1.tar.gz | 2.9 kB | Without provenance | Details for legaldata-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| legaldata-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for legaldata-0.1.1-py3-none-any.whl |
Total release size: 5.6 kB
Release files / legaldata-0.1.1.tar.gz
| Download URL | legaldata-0.1.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58862d38be44a71907dc74aaa96672165bec772847aca82a4e0f4e5a9f842192
|
|
BLAKE2b-256 checksum How to use checksums |
29b75fc3b25878b7bfc761018d6e86902c8f7c1b8637eac09d7290ee1b493b2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
|
Release files / legaldata-0.1.1-py3-none-any.whl
| Download URL | legaldata-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf69e5a2d1b35091da6e8414f536a0996a76cda76adeed2ae449d2e8452ac626
|
|
BLAKE2b-256 checksum How to use checksums |
3a756c3bcd3724c627b3994f14d26d6d031c135c42281adee230990461605673
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7
|
Security for legaldata 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.