Extract data with BeautifulSoup
<p>I need to extract "Ended 7 seconds ago" from file:</p>

<pre><code>&lt;div class="featured__columns"&gt;             
                            &lt;div class="featured__column"&gt;&lt;i style="color:rgb(149,213,230);" class="fa fa-clock-o"&gt;&lt;/i&gt; &lt;span title="Today, 11:49am"&gt;Ended 7 seconds ago&lt;/span&gt;&lt;/div&gt;
                            &lt;div class="featured__column featured__column--width-fill text-right"&gt;&lt;span title="March 7, 2016, 10:50am"&gt;2 days ago&lt;/span&gt; by &lt;a style="color:rgb(149,213,230);" href="/user/Eclipsy"&gt;Eclipsy&lt;/a&gt;&lt;/div&gt;&lt;a href="/user/Eclipsy" class="global__image-outer-wrap global__image-outer-wrap--avatar-small"&gt;
                                &lt;div class="global__image-inner-wrap" style="background-image:url(https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/dc/dc5b8424bd5d17e13dcfe613689921dfc29f4574_medium.jpg);"&gt;&lt;/div&gt;
                            &lt;/a&gt;
                        &lt;/div&gt;
</code></pre>

<p>I try:</p>

<pre><code>#!/usr/bin/python3
from bs4 import BeautifulSoup
with open("./source.html") as source_html:
    soup=BeautifulSoup(source_html.read())
    soup=soup.find_all("span")
    print(soup[0].string)
</code></pre>

<p>All good, but i think my method so stupid. There are different way to extract data?</p>