Skip to content

Instantly share code, notes, and snippets.

@mcccclean
mcccclean / ggrab.py
Created March 20, 2014 11:16
download a google spreadsheet and return it as a list of dicts
import gspread
import getpass
import unicodecsv
def write(filename, values):
f = open(filename, "w")
w = unicodecsv.writer(f, encoding='utf-8')
for row in values:
w.writerow(row)
f.close()

Keybase proof

I hereby claim:

  • I am mcccclean on github.
  • I am mcccclean (https://keybase.io/mcccclean) on keybase.
  • I have a public key whose fingerprint is 5A4A 7D99 D507 6977 A9F6 C47A 752A EF45 265B 0DD7

To claim this, I am signing this object:

<?php
// if you add a new file...
// make sure the '<' is the FIRST THING IN THE FILE
// no whitespace!! nothing! '<' ONLY OR THE WHOLE DANG SITE BREAKS
// call your class something reasonable. use 'extends' to get all the properties
// of another type of page, or just Page if it's its own new thing
class MyNewPagetype extends Page {