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