mirror of https://github.com/MISP/PyMISP
Update pymisp tutorial
Extract the "response" field from the json result returned by misp.search_indexpull/325/head
parent
1ec357cd74
commit
13903046d4
|
@ -315,9 +315,11 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"results = misp.search_index(eventinfo='notebook')\n",
|
||||
"result = misp.search_index(eventinfo='notebook')\n",
|
||||
"events = result['response']\n",
|
||||
"\n",
|
||||
"for event in results:\n",
|
||||
"print('Found ', len(events), ' events!')\n",
|
||||
"for event in events:\n",
|
||||
" print(event['id'], ':', event['info'])"
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue