← 返回
未分类 中文

City of Edmonton Open Data

Access 2,179+ datasets from the City of Edmonton open data portal. Search, fetch, and analyze city data on transit, traffic, environment, census, and more. D...
访问埃德蒙顿市开放数据门户的2,179+数据集,搜索、获取并分析交通、环境、人口普查等城市数据。
raychanpmp
未分类 clawhub v1.0.3 1 版本 100000 Key: 无需
★ 0
Stars
📥 397
下载
💾 0
安装
1
版本
#latest

概述

City of Edmonton Open Data

Access and analyze 2,179+ open datasets from the City of Edmonton via the Socrata SODA API. Data covers transit, traffic, census, environment, city administration, and more.

Portal: https://data.edmonton.ca

Licence: Open Government Licence – City of Edmonton

Quick Start

# Search for datasets
python3 scripts/edmonton_data.py search "traffic"

# List datasets by category
python3 scripts/edmonton_data.py list --category "Transit"

# View dataset info
python3 scripts/edmonton_data.py info 24uj-dj8v

# Fetch data (default JSON, 10 rows)
python3 scripts/edmonton_data.py fetch 24uj-dj8v --limit 5

# Fetch with filters
python3 scripts/edmonton_data.py fetch 24uj-dj8v --where "year='2025'" --select "job_category,address,construction_value"

# Export to CSV
python3 scripts/edmonton_data.py fetch 24uj-dj8v --limit 100 --csv > permits.csv

# List all categories
python3 scripts/edmonton_data.py categories

# View popular datasets
python3 scripts/edmonton_data.py popular

# GeoJSON export (if dataset has location columns)
python3 scripts/edmonton_data.py geojson h4ti-be2n --limit 50

Commands Reference

CommandDescription
----------------------
search Search datasets by keyword
list [--category ]List datasets, optionally filter by category
info Show dataset metadata (columns, types, row count)
fetch Download data rows (opts: --limit, --where, --select, --order, --csv, --json)
categoriesList all categories with dataset counts
popularShow most-viewed datasets
geojson Export geocoded data as GeoJSON

Query Parameters

The fetch command supports Socrata SODA query parameters:

  • --limit N — Max rows to return (default: 10)
  • --where "condition" — SQL-like filter (e.g., "construction_value > 100000")
  • --select "col1,col2" — Choose specific columns
  • --order "col DESC" — Sort results
  • --offset N — Skip N rows (pagination)
  • --csv — Output as CSV instead of JSON

Dataset IDs

Dataset IDs are 9-character alphanumeric codes (e.g., 24uj-dj8v). Find them via search or list, or from the dataset URL: data.edmonton.ca/dataset/{id}.

Data Sources

All data sourced from the City of Edmonton's Open Data Portal (data.edmonton.ca) under the Open Government Licence – City of Edmonton. See references/datasets.md for a curated list of popular datasets.

Environment Variables

VariableRequiredDescription
---------------------------------
SOCRATA_APP_TOKENNoOptional Socrata app token to reduce rate limits. Works without it.

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-05-03 09:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Smart Teacher

raychanpmp
专业教育规划工具,生成教案、课程图谱、学习计划、测评及符合布鲁姆分类学的学习目标。
★ 0 📥 597

City of Calgary Open Data

raychanpmp
访问卡尔加里市开放数据门户的988+数据集,搜索、获取并分析交通、环境、政府等方面的城市数据。
★ 0 📥 460

City of Lethbridge Open Data

raychanpmp
从莱斯布里奇市开放数据门户访问 123+ 数据集,搜索、获取并分析城市数据,涵盖交通、基础设施、选举、环境等。
★ 0 📥 393