Automated archive of British Columbia legislation in markdown format, sourced from bclaws.gov.bc.ca.
This repository contains a complete mirror of BC statutes and regulations, automatically updated weekly via GitHub Actions. The legislation is converted from XML to markdown for easy reading and version tracking.
laws/
├── statutes/
│ ├── A/
│ ├── B/
│ └── ...
└── regulations/
├── A/
├── B/
└── ...
Documents are organized alphabetically by title within statute and regulation folders.
- Install dependencies:
pip install -r requirements.txt- Run the scraper:
python bc_laws_scraper.pyThis will fetch all BC legislation and save it to the laws/ directory.
The GitHub Actions workflow runs weekly (every Sunday at 2 AM UTC) and automatically:
- Fetches the latest legislation
- Commits only changed files
- Pushes updates to the repository
You can also trigger the workflow manually from the Actions tab.
All content is sourced from the BC Laws API under the King's Printer Licence.
THIS IS NOT AN OFFICIAL VERSION
These materials contain information that has been derived from information originally made available by the Province of British Columbia at: www.bclaws.gov.bc.ca
This is an unofficial archive for educational and research purposes only. For official legal documents, always refer to bclaws.gov.bc.ca.
This repository uses a dual licensing structure:
The scraper code and scripts in this repository are licensed under the MIT License - see the LICENSE file for details.
All BC legislation content in the laws/ directory is subject to the King's Printer License – British Columbia and belongs to the Province of British Columbia.
The content is provided "as is" without warranty. The Province of British Columbia disclaims all liability for errors, omissions, or damages resulting from use of this information.
Issues and improvements to the scraper are welcome. Note that the legislation content itself should not be manually edited as it will be overwritten on the next automated run.