title: Google Apps Script shown incorrect values
body: <p>I am using Google Apps Script to update a Google spreadsheet.
  The Apps script is taking the follower count for Twitter pages. 
  I am using below formula for the same  </p>
  
  <p>I have used <a href="https://www.benlcollins.com/spreadsheets/import-social-media-statistics/" rel="nofollow noreferrer">this</a> URL for reference</p>
  
  <pre><code>  cell.setValue('=IMPORTXML(\"'+url+'\","//a[@data-nav=\'followers\']/span[3]")'); 
  </code></pre>
  
  <p>Basically we are doing a kind of scraping here to extract the count values. The above code is looking for  <code>anchor</code> tag with value for <code>data-nav</code>     as  <code>followers</code>  and taking the text inside the 3rd <code>span</code> tag . When I inspected the page in browser , the value shown in the third <code>span</code> tag was 100 (for example).
  But the value picked by appscript is higher than that (like 101 or 102) . 
    I thought it was due to caching , and we even used random numbers to avoid that , but even that didn't work.The  details for that was found <a href="https://support.geckoboard.com/hc/en-us/articles/207238327-Using-Google-Sheets-IMPORTXML-function-to-display-data-in-Geckoboard#automaticupdate" rel="nofollow noreferrer">here</a></p>
  
  <p>Can somebody have a look into this ?</p>