Skip to content

Instantly share code, notes, and snippets.

View blinks's full-sized avatar

Adam Blinkinsop blinks

View GitHub Profile
@blinks
blinks / randgame.py
Created February 10, 2010 20:11
Choose a random game from your BGG collection.
#!/usr/bin/env python2.6
"""
Choose a random game from your BGG collection. For example:
$ ./randgame.py blinks
Downloading collection for blinks...
Filtering collection of 66 for 2 players...
Filtering remaining 53 for 90 minutes...
Filtering remaining 39 for rating 6.0...
Choosing from 29 games... -> Fluxx <-
@blinks
blinks / gather.py
Created September 30, 2014 04:51
gather.py
#!/usr/bin/env python
# Gather cards from wizards.com into local Elasticsearch.
# Adam Blinkinsop <http://plus.google.com/+AdamBlinkinsop>
from elasticsearch import Elasticsearch
import bs4
import re
import urllib
def main(args):
sets = args.sets