Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willycs40
willycs40 / api.py
Last active January 26, 2016 11:03
#!/usr/bin/env python
# encoding: utf-8
# This code is borrowed, with edits for python 3, from https://github.com/scraperwiki/zoopla
# License: https://github.com/scraperwiki/zoopla/blob/master/LICENCE
import requests
import requests_cache
from urllib.parse import urlencode
import logging
L = logging.getLogger(__name__)
@willycs40
willycs40 / buttons.py
Last active February 14, 2016 23:36
suggested button code
class Buttons(list):
def __init__(self):
pass
# Add a new button to this list of buttons, but also
# return the new button, so we can capture a handle to it
# in the calling module.
def add(self, name, pin_number):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.