🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

gdelt-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdelt-toolkit

tools for streaming, linting, and parsing GDELT data

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

GDELT TOOLKIT

Tools for downloading, parsing, and linting GDELT data, with CLI and Module Bindings

CLI API

npm install -g gdelt-toolkit

gdelt <cmd> [args]

Commands:
  gdelt download  get gdelt by datetime
  gdelt lint      lint gdelt by datetime
  gdelt clean     clean cache

Download

Download GDELT file and ouput as JSON or N3 for specified UTC datetime (ISO-8601). GDELT files are published on the hour at 15min intervals; omitting the datetime arg will download the first file of the day. Downloads are cached locally.

Default rules for parsing GDELT tsv files are defined for JSON and N3.

gdelt download [-d YYYY-MM-DD | YYYY-MM-DDThh:mm] [-f] [--cachePath]

Options:
  --datetime, -d  datetime          [defaults to today]
  --format,   -f  output format     [choices: "json", "n3"] [default: "json"]
  --cachePath     path to cache     [defaults to internal module cache]

Lint

Lint GDELT file for specified UTC datetime (ISO-8601), outputting linting errors as JSON. Omitting the datetime arg will download the first file of the day.

Default linting rules are defined here.

gdelt download [-d YYYY-MM-DD | YYYY-MM-DDThh:mm] [--cachePath]

Options:
  --datetime, -d  datetime          [default to today]
  --cachePath     path to cache     [defaults to internal module cache]

List

List all available GDELT files, outputting a JSON list of each file url, size, and checksum.

gdelt list [--cachePath]

Options:
  --cachePath     path to cache     [defaults to internal module cache]

Clean Cache

Clear cache of downloaded GDELT files.

gdelt clean

clean cache [--cachePath]

Options:
  --cachePath     path to cache     [defaults to internal module cache]

Keywords

gdelt

FAQs

Package last updated on 06 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts