Skip to content

Commit

Permalink
Merge branch 'iss1019feat' of github.com:yosoycentli/API into iss1019…
Browse files Browse the repository at this point in the history
…feat
  • Loading branch information
yosoycentli committed Jan 19, 2022
2 parents c9c2f11 + 14ebd0e commit 3478e5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scrapers/influenza/getCDC.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const { getCurrentWeek } = require('../../utils/dateTimeUtils');

const weekNums = [...Array(52).keys()];
const weekNumber = weekNums.slice(getCurrentWeek() - 3)[0];
const ILINetURL = `https://www.cdc.gov/flu/weekly/weeklyarchives2020-2021/data/senAllregt${weekNumber}.html`;
const USPHLURL = `https://www.cdc.gov/flu/weekly/weeklyarchives2020-2021/data/whoAllregt_phl${weekNumber}.html`;
const USCLURL = `https://www.cdc.gov/flu/weekly/weeklyarchives2020-2021/data/whoAllregt_cl${weekNumber}.html`;
const ILINetURL = `https://www.cdc.gov/flu/weekly/weeklyarchives2021-2022/data/senAllregt${weekNumber}.html`;
const USPHLURL = `https://www.cdc.gov/flu/weekly/weeklyarchives2021-2022/data/whoAllregt_phl${weekNumber}.html`;
const USCLURL = `https://www.cdc.gov/flu/weekly/weeklyarchives2021-2022/data/whoAllregt_cl${weekNumber}.html`;

const ILINetColumns = ['week', 'age 0-4', 'age 5-24', 'age 25-49', 'age 50-64', 'age 64+', 'totalILI', 'totalPatients', 'percentUnweightedILI', 'percentWeightedILI'];
const USPHLColumns = ['week', 'A(H3N2v)', 'A(H1N1)', 'A(H3)', 'A(unable to sub-type)', 'A(Subtyping not performed)', 'B', 'BVIC', 'BYAM', 'totalTests'];
Expand Down

0 comments on commit 3478e5b

Please sign in to comment.