How to get text from span tag in BeautifulSoup
<p>I have links looks like this</p>

<pre><code>&lt;div class="systemRequirementsMainBox"&gt;
&lt;div class="systemRequirementsRamContent"&gt;
&lt;span title="000 Plus Minimum RAM Requirement"&gt;1 GB&lt;/span&gt; &lt;/div&gt;
</code></pre>

<p>I'm trying to get <code>1 GB</code> from there. I tried</p>

<pre><code>tt  = [a['title'] for a in soup.select(".systemRequirementsRamContent span")]
for ram in tt:
    if "RAM" in ram.split():
        print (soup.string)
</code></pre>

<p>It outputs <code>None</code>.</p>

<p>I tried <code>a['text']</code> but it gives me KeyError. How can I fix this and what is my mistake?</p>