Example script to invoke the cache_all_feeds() from PyMISP.

pull/95/head
obsidianpentesting 2017-07-06 16:07:34 -05:00
parent c18d5cac6d
commit 17e44c1c74
1 changed files with 14 additions and 0 deletions

14
examples/cache_all.py Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from keys import misp_url, misp_key, misp_verifycert
from pymisp import PyMISP
def init(url, key):
return PyMISP(url, key, misp_verifycert, 'json')
if __name__ == '__main__':
misp = init(misp_url, misp_key)
misp.cache_all_feeds()