title: Not getting desired XPath
body: <p>To summarise, how can I get an XPath to scrape the odds in my script.</p>
  
  <p>An XPath that gives different values.</p>
  
  <p>groups = <code>".//div[contains(@class, 'gl-ParticipantOddsOnlyDarker gl')]"</code></p>
  
  <p>xp_ba3 = <code>".//span[contains(@class, 'gl-Participa')]"</code></p>
  
  <p>The XPath needs for both groups and xp_ba3 needs to be the same length and different for it to behave correctly (I believe).</p>
  
  <p>Desired XPath looks like:</p>
  
  <p>XPath: <code>//div[contains(@class, 'gl-Market_HasLabels')]/following-sibling::div[contains(@class, 'gl-Market_PWidth-12-3333')][1]//div[contains(@class, 'gl-ParticipantOddsOnly')]</code>.</p>
  
  <p>This works but when I add this logic and run the <a href="https://pastebin.com/wGXc1tvZ" rel="nofollow noreferrer">script</a> -- it does not work.</p>
  
  <p>Webpage <a href="https://ibb.co/fs7Hwb" rel="nofollow noreferrer">odds</a> I am after.</p>
  
  <p>My output instead of different odds looks like: </p>
  
  <pre><code>[['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87'], ['2.87']]
  </code></pre>
  
  <p>How can I get the odds to work?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="gl-ParticipantOddsOnlyDarker gl-ParticipantOddsOnly gl-Participant_General sl-MarketCouponAdvancedBase_LastChild " &gt;
          &lt;span class="gl-ParticipantOddsOnly_Odds" &gt; 2.45 &lt;/span&gt;
      &lt;/div &gt;&lt;span class="gl-ParticipantOddsOnly_Odds"&gt;2.45&lt;/span&gt; 
  </code></pre>
  
  <p>from <a href="https://www.bet365.com.au/#/AC/B1/C1/D13/E108/F16/S1/" rel="nofollow noreferrer">website</a></p>