spartypkp/open-source-legislation

Open-source global legislation data in an SQL knowledge-graph format ideal for use with LLMs: Download legislation data in bulk and immediately start building with our Python/Typescript SDKs. Democratize Legal Knowledge For All

29
/ 100
Experimental

This project was an effort to collect and standardize global legislative data, transforming raw government website information into a unified SQL database ready for use in AI applications. The goal was to provide a structured dataset of laws and regulations, complete with machine-readable embeddings, to make it easier for legal professionals, researchers, or anyone building legal technology to access and analyze legislative text without needing to manually collect and clean the data themselves. It aimed to take disorganized legislative documents and turn them into an organized, queryable knowledge graph.

Use this if you are a developer or researcher looking for a reference example of how to build a web scraping and data modeling pipeline for complex, hierarchical text data like legal statutes, particularly if you're interested in structuring it for AI applications.

Not ideal if you need current, actively maintained legislative data or working tools, as the project is archived, its data downloads are broken, and its scrapers are outdated.

legal-research legislative-analysis legal-tech knowledge-management regulatory-compliance
No License No Package No Dependents
Maintenance 6 / 25
Adoption 5 / 25
Maturity 8 / 25
Community 10 / 25

How are scores calculated?

Stars

14

Forks

2

Language

Python

License

Category

scraper

Last pushed

Nov 15, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/perception/spartypkp/open-source-legislation"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.