title: Why does it give me an error in class parsing?
body: <p>I'm trying to parse the dollar rate from the site <a href="https://yandex.ru/" rel="nofollow noreferrer">https://yandex.ru/</a>. He did everything according to all the canons. Tell me what's wrong?</p>
  <pre><code>response = requests.get('https://yandex.ru')
  body = html.fromstring(response.text)
  dollar = body.xpath('//span[@class=&quot;inline-stocks__value_inner&quot;]/text()')[0]
  </code></pre>
  <p>The error is the following:</p>
  <pre><code>dollar = body.xpath('//span[@class=&quot;inline-stocks__value_inner&quot;]/text()')[0]
  IndexError: list index out of range
  </code></pre>