Skip to content

Instantly share code, notes, and snippets.

@YorikSar
YorikSar / openstack_foundation_affiliations.py
Created August 20, 2012 10:52 — forked from oubiwann/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())