BeautifulSoup: get text from some tag
<p>I have data</p>

<pre><code>&lt;span class="label"&gt;ÐÑÐ¸Ð²Ð¾Ð´:&lt;/span&gt; Ð¿ÐµÑÐµÐ´Ð½Ð¸Ð¹&lt;br/&gt;
&lt;span class="label"&gt;Ð¢Ð¸Ð¿ ÐºÑÐ·Ð¾Ð²Ð°:&lt;/span&gt; ÑÐµÐ´Ð°Ð½&lt;br/&gt;
&lt;span class="label"&gt;Ð¦Ð²ÐµÑ:&lt;/span&gt; ÑÐµÑÑÐ¹&lt;br/&gt;
&lt;span class="label"&gt;ÐÑÐ¾Ð±ÐµÐ³ Ð¿Ð¾ Ð Ð¾ÑÑÐ¸Ð¸:&lt;/span&gt; ÐµÑÑÑ&lt;br/&gt;
&lt;span class="label"&gt;ÐÑÐ¾Ð±ÐµÐ³, ÐºÐ¼:&lt;/span&gt; 87000&lt;br/&gt;
&lt;span class="label"&gt;Ð ÑÐ»Ñ:&lt;/span&gt; Ð»ÐµÐ²ÑÐ¹&lt;br/&gt;
</code></pre>

<p>I need to get <code>87000</code>
I try</p>

<pre><code>mileage = soup.find('span', class_='label', text='ÐÑÐ¾Ð±ÐµÐ³, ÐºÐ¼:').findNext('br').get_text()
</code></pre>

<p>or</p>

<pre><code>mileage = soup.find('span', class_='label', text='ÐÑÐ¾Ð±ÐµÐ³, ÐºÐ¼:').next_subling
</code></pre>

<p>but it returns None.
What I do wrong?</p>

<p>In the first code snippet, you are trying to get the text of the <code>br</code> element but it does not have any.</p>

<p>In the second code snippet you have a typo - it is not <code>next_subling</code>, it is <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/#next-sibling-and-previous-sibling" rel="nofollow"><code>next_sibling</code></a>:</p>

<pre><code>soup.find('span', class_='label', text='ÐÑÐ¾Ð±ÐµÐ³, ÐºÐ¼:').next_sibling
</code></pre>

python beautifulsoup