City of Montreal Open Data
by @raychanpmp
Access 398+ datasets from the City of Montreal open data portal. Search, fetch, and analyze city data on crime, transit, environment, permits, and more via t...
clawhub install montreal-opendataπ About This Skill
name: City of Montreal Open Data description: "Access 398+ datasets from the City of Montreal open data portal. Search, fetch, and analyze city data on crime, transit, environment, permits, and more via the CKAN API." permissions: Bash triggers: - montreal open data - city of montreal data - montreal dataset - donnees montreal - montreal transit - montreal crime
City of Montreal Open Data
Access and analyze 398+ open datasets from the City of Montreal via the CKAN API. Data covers crime, transit, environment, permits, employment, and more.
Portal: https://donnees.montreal.ca Platform: CKAN Language: Data and metadata primarily in French
Quick Start
# Search for datasets
python3 scripts/montreal_data.py search "crime"List all datasets
python3 scripts/montreal_data.py listView dataset info
python3 scripts/montreal_data.py info actes-criminelsFetch data
python3 scripts/montreal_data.py fetch actes-criminels --limit 5Export as CSV
python3 scripts/montreal_data.py fetch actes-criminels --limit 100 --csv > crimes.csvList queryable datasets
python3 scripts/montreal_data.py searchable
Commands Reference
| Command | Description |
|---------|-------------|
| search | Search datasets by keyword (French) |
| list | List all datasets |
| info | Show dataset metadata and resources |
| fetch | Fetch data from datastore (opts: --limit, --csv) |
| searchable | List datasets with queryable resources |
Language Note
Montreal publishes data primarily in French. Search queries should use French terms.
Data Sources
All data from donnees.montreal.ca under the Quebec Open Government Licence.
π‘ Examples
# Search for datasets
python3 scripts/montreal_data.py search "crime"List all datasets
python3 scripts/montreal_data.py listView dataset info
python3 scripts/montreal_data.py info actes-criminelsFetch data
python3 scripts/montreal_data.py fetch actes-criminels --limit 5Export as CSV
python3 scripts/montreal_data.py fetch actes-criminels --limit 100 --csv > crimes.csvList queryable datasets
python3 scripts/montreal_data.py searchable