Skip to content

Instantly share code, notes, and snippets.

View openfly's full-sized avatar

Matt Joyce openfly

View GitHub Profile
@openfly
openfly / openstack_foundation_affiliations.py
Created October 2, 2012 18:01 — forked from YorikSar/openstack_foundation_affiliations.py
A quick hack to tally OpenStack Member affiliations
from pprint import pprint
from urllib2 import urlopen
from bs4 import BeautifulSoup
counts = {}
for letter in [chr(a) for a in xrange(ord('A'), ord('Z') + 1)] + ['intl']:
url = "http://www.openstack.org/community/members/?letter=%s" % (letter,)
soup = BeautifulSoup(urlopen(url).read())