Skip to content

Commit

Permalink
Update scripteditor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yukihirai0505 authored Dec 26, 2017
1 parent 8893319 commit 5295779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripteditor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var queryString = Math.random();

function getData() {
var queryString = Math.random();
var ss = SpreadsheetApp.getActiveSpreadsheet();

//
Expand Down Expand Up @@ -94,12 +95,11 @@ function getRate(currencyId) {
}

function getWebRate(currencyId) {

//Example Output:
// '=IMPORTXML("https://coinmarketcap.com/currencies/zeeyx?3908288283","//span[@id=\'quote_price\']")';

var coinScrape1 = '=IMPORTXML("https://coinmarketcap.com/currencies/';
var coinScrape2 = '","//span[@id=\'quote_price\']")';

return coinScrape1 + currencyId + '?' + queryString + coinScrape2;
}
}

0 comments on commit 5295779

Please sign in to comment.