def parse_synopsis(page, cleanup=None):
    soup = BeautifulSoup(page)
    try:
        result = soup.find('div', attrs={'class': 'show_synopsis'}).text
        #cleaning up a litle bit
        if cleanup:
            result, _ = result.split(cleanup)
        return result
    except __HOLE__, e:
        print('parse_synopyis - BeautifulSoup.find(): %s' % e)
dataset/ETHPy150Open ckreutzer/python-tvrage/tvrage/util.py/parse_synopsis