def extract_usernames(html):
    soup = BeautifulSoup(html)
    usernames = soup.findAll(name='div', attrs={'class': 'username'})
    usernames = [u.a.text for u in usernames]
    plaintext_usernames = []
    for u in usernames:
        try:
            plaintext_usernames.append(str(u))
        except UnicodeError, e:
            print 'Skipping funky username', u
    print 'Found %d viable usernames' % len(plaintext_usernames)
    # print plaintext_usernamess
    return plaintext_usernames


#####################################################################
# Some constants to help us build the correct query parameters
#####################################################################
Make text bold.
dataset/ETHPy150Open everett-wetchler/okcupid/FindUsers.py/extract_usernames--crossover with--dataset/ETHPy150Open click-contrib/click-plugins/example/PrintItBold/printit_bold/core.py/bold