title: IMPORTXML into a Google Apps Script with Automatic Update
body: <p>I'm trying to get a Google sheets apps script to work for an IMPORTXML I'm using.  </p>
  
  <pre><code>A1
  =importxml("http://www.nfl.com/liveupdate/scorestrip/ss.xml","//@q")
  
  A2
  =importxml("http://www.nfl.com/liveupdate/scorestrip/ss.xml","//@h")
  </code></pre>
  
  <p>The data fills from <code>A1:B16</code></p>
  
  <p>According to a script I found on web to have it auto refresh:</p>
  
  <pre><code>function getData() {
    var queryString = Math.random();
  
    var cellFunction1 = '=IMPORTXML("' + SpreadsheetApp.getActiveSheet().getRange('A1').getValue() + '?' + queryString + '","'+ SpreadsheetApp.getActiveSheet().getRange('A2').getValue() + '")';
    SpreadsheetApp.getActiveSheet().getRange('C1').setValue(cellFunction1);
  
    var cellFunction2 = '=IMPORTXML("' + SpreadsheetApp.getActiveSheet().getRange('A4').getValue() + '?' + queryString + '","'+ SpreadsheetApp.getActiveSheet().getRange('A5').getValue() + '")';
    SpreadsheetApp.getActiveSheet().getRange('C2').setValue(cellFunction2);
  }
  </code></pre>
  
  <p>I don't know what I'm supposed to be putting/replacing in that code with mine.  If someone could help me to explain what I'm supposed to be changing to get it to work in my sheet/provide some examples of how one might look that would be a  huge help.</p>
  
  <p>I appreciate</p>