title: How do I get the value of a soup.select?
body: <pre class="lang-html prettyprint-override"><code>&lt;h2 class=&quot;hello-word&quot;&gt;&lt;a href=&quot;http://www.google.com&quot;&gt;Google&lt;/a&gt;&lt;/h2&gt;
  </code></pre>
  <p>How do I grab the value of the <code>a</code> tag (Google)?</p>
  <pre><code>print soup.select(&quot;h2 &gt; a&quot;)
  </code></pre>
  <p>returns the entire a tag and I just want the value. Also, there could be multiple H2s on the page. How do I filter for the one with the class <code>hello-word</code>?</p>