Skip to content

Instantly share code, notes, and snippets.

View patcon's full-sized avatar

Patrick Connolly patcon

View GitHub Profile
@patcon
patcon / tinder-api-documentation.md
Created May 25, 2016 18:20 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since. I have nothing to do with Tinder, nor their API, and I do not offer any support for anything you may build on top of this

API Details

@patcon
patcon / README.md
Created May 10, 2016 04:34
Toronto Police Services - Calls For Service
@patcon
patcon / 149105.json
Last active May 10, 2016 02:45
City of Toronto Youth Services dataset (Unofficial)
{
"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 Open Data Catalogue Datasets" dataset

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.

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
@patcon
patcon / toronto-org-hierarchy-A.py
Last active May 17, 2016 16:09
City of Toronto Organizational Hierarchy
ORGANIZATION_HIERARCHY = {
'name': {
'City Council': {
'name': {
'Audit Committee': {},
'Board of Health': {
'name': {
'^Board of Health .+'
}
},
@patcon
patcon / README.md
Last active May 10, 2022 23:24
A parser for the City of Toronto subject thesaurus/taxonomy, helpful for searching tmmis with internal city tags (updated 2021-02-24)