def get_column_titles(table):
    """ Get the Nobel categories from the table header """
    cols = []
    for th in table.find('tr').find_all('th')[1:]: 
        link = th.find('a')
        # Store the category name and any Wikipedia link it has
        if link:
            cols.append({'title':link.text,\
                         'href':link.attrs['href']})
        else:
            cols.append({'title':th.text, 'href':None})
    return cols