Skip to content

Instantly share code, notes, and snippets.

View gunsch's full-sized avatar
🏳️‍🌈

Andrew Gunsch gunsch

🏳️‍🌈
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gunsch on github.
  • I am gunsch (https://keybase.io/gunsch) on keybase.
  • I have a public key ASDd3-aLoV73PAQoBBFR2NmHCwgVALfiYNoxvksybdKargo

To claim this, I am signing this object:

@gunsch
gunsch / gist:5351159
Last active December 16, 2015 00:58
Script to post Goodreads reviews to Tumblr
#!/usr/bin/python
import argparse
import datetime
import oauth2 as oauth
import sys
import urllib
import urllib2
import xml.etree.ElementTree as ET
>>> import re
>>> action='Jesse missed three point jumper. Assisted by Daniel.'
>>> re.search(r'^(.*) (missed|made) three point jumper\. (?:Assisted by (.*)\.)?', action).groups()
('Jesse', 'missed', 'Daniel')