beautiful soup get h1 text code example Example: beautifulsoup get h1 company = soup.find('h1', {'class' : 'listing-name'})