title: Extract subclass from class using beautifulsoup
body: <p>I'm working with the following HTML snippet from a page on Goodreads using Python 3.6.3:</p>
  
  <pre><code>&lt;div class="quoteText"&gt;
        “Don't cry because it's over, smile because it happened.”
    &lt;br/&gt;  ―
      &lt;a class="authorOrTitle" href="/author/show/61105.Dr_Seuss"&gt;Dr. Seuss&lt;/a&gt;
  &lt;/div&gt;, &lt;div class="quoteText"&gt;
  </code></pre>
  
  <p>I used BeautifulSoup to scrape the HTML and isolate just the "quoteText" class seen in the snippet above. Now, I want to save the quote and author name as separate strings. I was able to get the author name using</p>
  
  <pre><code>(quote_tag.find(class_="quoteText")).text
  </code></pre>
  
  <p>I'm not sure how to do the same for the quote. I'm guessing I need a way to remove the  subclass from my output and tried using the extract method.</p>
  
  <pre><code>quote.extract(class_="authorOrTitle")
  </code></pre>
  
  <p>but I got an error saying extract got an unexpected keyword argument 'class_'
  Is there any other way to do what I'm trying to do?</p>
  
  <p>This is my first time posting on here so I apologize if the post doesn't meet particular specificity/formatting/other standards.</p>