# install ocaml and deps
apt-get install ocaml ocaml-native-compilers
apt-get install liblablgtk2-ocaml-dev liblablgtksourceview2-ocaml-dev libocamlgraph-ocaml-dev
# install opam from binaries (ocaml package manager)
# See https://opam.ocaml.org/doc/Install.html#Binarydistribution
wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin/
#### OR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/repos/chef-cm-update-server (master ✘)✭ ᐅ http POST 127.0.0.1:3000/api < test.json | |
HTTP/1.1 200 OK | |
Connection: keep-alive | |
Content-Length: 365 | |
Content-Type: application/json | |
Date: Sat, 09 May 2015 21:11:20 GMT | |
{ | |
"error": null, | |
"id": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ORGANIZATION_HIERARCHY = { | |
'name': { | |
'City Council': { | |
'name': { | |
'Audit Committee': {}, | |
'Board of Health': { | |
'name': { | |
'^Board of Health .+' | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ca_on_toronto/__init__.py b/ca_on_toronto/__init__.py | |
index bda98f5..82d7281 100644 | |
--- a/ca_on_toronto/__init__.py | |
+++ b/ca_on_toronto/__init__.py | |
@@ -4,6 +4,19 @@ from .jurisdiction import TorontoJurisdiction | |
import lxml.html | |
import requests | |
+# Patch importer to swallow DuplicateItemError for Bill | |
+import pupa.importers.bills |
This dataset is generated from running this scraper on the Toronto Data Catalogue, like so:
scrapy runspider toronto_data_portal/spiders/portal.py -o data/open-data-catalogue-datasets.json
We use this dataset to generate data.toronto.io
community data catalogue itself for the city-managed portion of the site.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"acc": "N", | |
"accessibility": "Not Accessible", | |
"address": "33 Victoria St Unit 150, Toronto, ON M5C 2A1", | |
"application": "Drop in, with appropriate supporting documents (call ahead or see website) * many forms can also be completed and submitted online", | |
"fees": "Fees for some transactions", | |
"fid": 149105, | |
"freePhone": "Ontario-wide 1-800-267-8097", | |
"hours": "Mon-Wed, Fri 9 am-5 pm; Thu 9 am-7 pm; Sat 9 am-1 pm", | |
"intersection": "Yonge St and King St W", |
- Toronto Police Services mapping apps
- One of the endpoints behind the map: here