title: Python + XPath: Is it possible to select the next element after the one I actually want?
body: <p>Suppose I have something like this:</p>
  
  <pre><code>&lt;span class="filesize"&gt;File&lt;a href="http://example.com/image.jpg" 
  target="_blank"&gt;image.jpg&lt;/a&gt;-(1.61 MB, 1000x1542, &lt;span title="what the file is actually 
  called.jpg"&gt;what the file is actually called.jpg&lt;/span&gt;)&lt;/span&gt;&lt;br&gt;&lt;a href="http://example.com
  /image.jpg" target="_blank"&gt;
  </code></pre>
  
  <p>What I want to extract from it is <code>http://example.com/image.jpg</code> and <code>what the file is actually called.jpg</code>. The constant term is the <code>&lt;span class="filesize"&gt;File</code> which I can find using <code>xpath("span[text()='File']")</code> but that only gives me access to the <code>span</code>. Is there a way to do something like <code>result += 1</code> to go to the link afterward and then the <code>span</code> after it with the file name?</p>