stats: history and culture collector (step 4): events, offices, people, holidays, UNESCO, religion, long-run series
Some checks failed
Deploy production / deploy (push) Failing after 1m0s
Some checks failed
Deploy production / deploy (push) Failing after 1m0s
This commit is contained in:
@@ -38,6 +38,7 @@ import { eurobarometer } from './stats/eurobarometer';
|
||||
import { whr } from './stats/whr';
|
||||
import { gtrends } from './stats/gtrends';
|
||||
import { gdelt } from './stats/gdelt';
|
||||
import { history } from './stats/history';
|
||||
|
||||
const [source, ...args] = process.argv.slice(2);
|
||||
const flag = (name: string) => args.includes(`--${name}`);
|
||||
@@ -110,12 +111,15 @@ try {
|
||||
case 'gtrends':
|
||||
await gtrends({ job });
|
||||
break;
|
||||
case 'history':
|
||||
await history({ only: value('only'), job });
|
||||
break;
|
||||
case 'gdelt':
|
||||
await gdelt({ job, timespan: value('timespan') });
|
||||
break;
|
||||
default:
|
||||
throw new Error(
|
||||
`Unknown source "${source}" (cbs, eurostat, fred, bis, worldbank, imf, owid, energycharts, rijksfinancien, ustreasury, usaspending, eponline, cbscw, cwintl, elections, parties, wikipolls, eurobarometer, whr, gtrends, gdelt, normalise-cbs)`
|
||||
`Unknown source "${source}" (cbs, eurostat, fred, bis, worldbank, imf, owid, energycharts, rijksfinancien, ustreasury, usaspending, eponline, cbscw, cwintl, elections, parties, wikipolls, eurobarometer, whr, gtrends, gdelt, history, normalise-cbs)`
|
||||
);
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user