Last active
April 4, 2020 06:40
-
-
Save interdigitize/da28655e86ee4e40a746dc5052e6adba to your computer and use it in GitHub Desktop.
Revisions
-
interdigitize revised this gist
Apr 4, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,6 @@ var laCasesRegExp = new RegExp(/(Laboratory Confirmed Cases \(LCC\))([tdh<>\/]+)([0-9]+)/m); var laDeathsRegExp = new RegExp(/(Deaths)([tdh<>\/]+)([0-9]+)/m); var laCasesMatchText = laCasesRegExp.exec(websiteContent); Logger.log('LA cases: ' + laCasesMatchText[3]); var laDeathsMatchText = laDeathsRegExp.exec(websiteContent); Logger.log('LA deaths: ' + laDeathsMatchText[3]); -
interdigitize revised this gist
Apr 4, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ //extract data var laCasesRegExp = new RegExp(/(Laboratory Confirmed Cases \(LCC\))([tdh<>\/]+)([0-9]+)/m); var laDeathsRegExp = new RegExp(/(Deaths)([tdh<>\/]+)([0-9]+)/m); var laCasesMatchText = laCasesRegExp.exec(websiteContent); Logger.log('LA cases: ' + laCasesMatchText[4]); var laDeathsMatchText = laDeathsRegExp.exec(websiteContent); -
interdigitize renamed this gist
Mar 30, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
interdigitize created this gist
Mar 30, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ //extract data var laCasesRegExp = new RegExp(/(Laboratory Confirmed Cases \(LCC\)<\/th>)([^]+?)(<td>)?([0-9]+)/m); var laDeathsRegExp = new RegExp(/(Deaths<\/th>)([^]+?)(<td>)([0-9]+)/m); var laCasesMatchText = laCasesRegExp.exec(websiteContent); Logger.log('LA cases: ' + laCasesMatchText[4]); var laDeathsMatchText = laDeathsRegExp.exec(websiteContent); Logger.log('LA deaths: ' + laDeathsMatchText[4]);