Update pymisp tutorial

Extract the "response" field from the json result returned by misp.search_index
pull/325/head
Sandro Winkler 2019-01-25 15:43:28 +01:00 committed by GitHub
parent 1ec357cd74
commit 13903046d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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'])"
]
},