Skip to content

Instantly share code, notes, and snippets.

@cristianzsh
Created October 28, 2021 18:00
Show Gist options
  • Save cristianzsh/9b933d29abfef652d0382be9cd93b2c1 to your computer and use it in GitHub Desktop.
Save cristianzsh/9b933d29abfef652d0382be9cd93b2c1 to your computer and use it in GitHub Desktop.
OSINT: Envio de dados para o Elasticsearch
from elasticsearch import Elasticsearch, helpers
import csv
es = Elasticsearch()
with open("leak.csv") as f:
reader = csv.DictReader(f)
helpers.bulk(es, reader, index="osint", doc_type="csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment