title: Python HTML Parsing via CSS Selectors
body: <p>I'm trying to collect the plain text/business title from the following:
       <code>&lt;div class = "business-detail-text&gt;
             &lt;h1 class = "business-title" style="position:relative;" itemprop="name"&gt;H&amp;H Construction Co.&lt;/h1&gt;</code></p>
  
  <p>What is the best way to do this? The style &amp; itemprop attribute's are where I get stuck. I know I can use soup.select but I've had no luck so far.</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>def bbb_profiles(profile_urls):
      sauce_code = requests.get(profile_urls)
      plain_text = sauce_code.text
      soup = BeautifulSoup(plain_text, "html.parser")
      for profile_info in soup.findAll("h1", {"class": "business-title"}):
          print(profile_info.string)
  </code></pre>