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
#!/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 <- |
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
#!/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 |
NewerOlder