Created
October 28, 2021 18:00
-
-
Save cristianzsh/9b933d29abfef652d0382be9cd93b2c1 to your computer and use it in GitHub Desktop.
OSINT: Envio de dados para o Elasticsearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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