mirror of https://github.com/MISP/PyMISP
Merge pull request #510 from AndreC10002/patch-2
Update generate.py - define the number of entries to outputpull/515/head
commit
5a7f632d46
|
@ -5,7 +5,7 @@ import sys
|
|||
import json
|
||||
import os
|
||||
from pymisp import ExpandedPyMISP
|
||||
from settings import url, key, ssl, outputdir, filters, valid_attribute_distribution_levels
|
||||
from settings import entries, url, key, ssl, outputdir, filters, valid_attribute_distribution_levels
|
||||
|
||||
valid_attribute_distributions = []
|
||||
|
||||
|
@ -52,7 +52,7 @@ def saveManifest(manifest):
|
|||
if __name__ == '__main__':
|
||||
misp = init()
|
||||
try:
|
||||
events = misp.search(metadata=True, limit=200, **filters, pythonify=True)
|
||||
events = misp.search(metadata=True, limit=entries, **filters, pythonify=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
sys.exit("Invalid response received from MISP.")
|
||||
|
|
Loading…
Reference in New Issue