factbook
Version:
Serves as an independent data scraping module, complete with ontology and full scraping ability for the CIA World Factbook site
49 lines (48 loc) • 1.68 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var logger_1 = require("../utils/logger");
// const noop = () => { /* Noop */ };
var noop = function (a, b) { logger_1.consoleLog(a + " is " + Math.floor(b * 100) + " done"); };
var GlobalStore = /** @class */ (function () {
function GlobalStore() {
this.LOG_FILE_NAME = '';
this.LOG_STREAM = null;
this.IMAGES_TO_SCRAPE = [];
this.countriesInList = [];
this.debugLogger = logger_1.consoleLog;
this.errorLogger = logger_1.consoleError;
this.progressLogger = noop;
this.failedCountries = [];
this.failedImages = [];
this.jsonLD = [];
this.jsonNT = '';
this.agriculturalLands = {};
this.arableLands = {};
this.artificiallyIrrigatedLands = {};
this.borderCountries = {};
this.borderMaps = {};
this.borders = {};
this.climates = {};
this.climateZones = {};
this.coasts = {};
this.countries = {};
this.domainAreas = {};
this.elevations = {};
this.forestLands = {};
this.images = {};
this.geographicNotes = {};
this.landUses = {};
this.locations = {};
this.maritimeClaims = {};
this.nationalFlags = {};
this.naturalHazards = {};
this.naturalResources = {};
this.otherLands = {};
this.permanentCropsLands = {};
this.permanentPastureLands = {};
this.regionMaps = {};
this.terrains = {};
}
return GlobalStore;
}());
exports.store = new GlobalStore();