title: Get second element text with XPath?
body: <pre><code>&lt;span class='python'&gt;
    &lt;a&gt;google&lt;/a&gt;
    &lt;a&gt;chrome&lt;/a&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>I want to get <code>chrome</code> and have it working like this already.</p>
  
  <pre><code>q = item.findall('.//span[@class="python"]//a')
  t = q[1].text # first element = 0
  </code></pre>
  
  <p>I'd like to combine it into a single XPath expression and just get one item instead of a list.<br>I tried this but it doesn't work.</p>
  
  <pre><code>t = item.findtext('.//span[@class="python"]//a[2]') # first element = 1
  </code></pre>
  
  <p>And the actual, not simplified, HTML is like this.</p>
  
  <pre><code>&lt;span class='python'&gt;
    &lt;span&gt;
      &lt;span&gt;
        &lt;img&gt;&lt;/img&gt;
        &lt;a&gt;google&lt;/a&gt;
      &lt;/span&gt;
      &lt;a&gt;chrome&lt;/a&gt;
    &lt;/span&gt;
  &lt;/span&gt;
  </code></pre>