View pyCanLII.py
This file contains 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
import urllib, urllib2, json | |
class CanLIIException(Exception): | |
def __str__(self): | |
return repr(self.args) | |
class CanLII(object): | |
def __init__(self, api_key, language = 'en'): | |
self.address = "http://api.canlii.org/v1/" |