PyMISP/examples/fetch_events_feed.py

16 lines
475 B
Python
Raw Permalink Normal View History

2017-05-29 14:03:21 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from keys import misp_url, misp_key, misp_verifycert
2017-05-29 14:03:21 +02:00
import argparse
2019-07-17 16:46:47 +02:00
from pymisp import ExpandedPyMISP
2017-05-29 14:03:21 +02:00
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Fetch all events from a feed.')
parser.add_argument("-f", "--feed", required=True, help="feed's ID to be fetched.")
args = parser.parse_args()
2019-07-17 16:46:47 +02:00
misp = ExpandedPyMISP(misp_url, misp_key, misp_verifycert)
2017-05-29 14:03:21 +02:00
misp.fetch_feed(args.feed)