title: How to extract h1 tag text with beautifulsoup
body: <p>I'd like to understand how to extract a h1 tag text which contains many others tags in it using beautiful soup : </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1 class="listing-name"&gt;
  Hôtel Vevey 
  &lt;span class="entry-feedbacks-summary-title-rating-stars-container bootstrap"&gt;
  &lt;span class="entry-feedbacks-summary-title-rating-stars entry-feedbacks-summary-title-rating-stars-empty" data-container=".entry-feedbacks-summary-title-rating-stars-container" data-content="Il n'y a pas encore d'avis de clients à propos de Astra Hôtel Vevey 4*sup. Cliquez pour évaluer." data-placement="right" data-toggle="popover" data-trigger="hover" data-original-title="" title=""&gt;
  &lt;a class="feedback-login-link entry-feedbacks-header-link" href="/auth/localch?origin=https%3A%2F%2Ftel.local.ch%2Ffr%2Fd%2FVevey%2F1800%2FHotel%2FAstra-Hotel-Vevey-4sup-SVGb8b5z-QdrzGTddmyAAg%3Fwhat%3DHotel%26where%3DVaud%2B%2528Canton%2529%23entry-feedbacks-bottom-rate-button"&gt;&lt;span class="entry-feedback-rating-star"&gt;
  &lt;i class="icon-star-outline entry-feedback-rating-star-empty"&gt;&lt;/i&gt;
  &lt;/span&gt;
  &lt;span class="entry-feedback-rating-star"&gt;
  &lt;i class="icon-star-outline entry-feedback-rating-star-empty"&gt;&lt;/i&gt;
  &lt;/span&gt;
  &lt;span class="entry-feedback-rating-star"&gt;
  &lt;i class="icon-star-outline entry-feedback-rating-star-empty"&gt;&lt;/i&gt;
  &lt;/span&gt;
  &lt;span class="entry-feedback-rating-star"&gt;
  &lt;i class="icon-star-outline entry-feedback-rating-star-empty"&gt;&lt;/i&gt;
  &lt;/span&gt;
  &lt;span class="entry-feedback-rating-star"&gt;
  &lt;i class="icon-star-outline entry-feedback-rating-star-empty"&gt;&lt;/i&gt;
  &lt;/span&gt;
  
  &lt;/a&gt;&lt;/span&gt;
  
  &lt;/span&gt;
  &lt;/h1&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'm trying to extract the text JUST after the h1 tag "hôtel Vevey". </p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  url = "https://tel.local.ch/fr/d/Vevey/1800/Hotel/Astra-Hotel-Vevey-4sup-SVGb8b5z-QdrzGTddmyAAg?what=Hotel&amp;where=Vaud+%28Canton%29"
  get_url = requests.get(url)
  get_text = get_url.text
  soup = BeautifulSoup(get_text, "html.parser")
  
  company = soup.find_next('h1', 'class:listing-name')
  
  
  print(company)
  </code></pre>
  
  <p>It returns me "none"</p>