Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue to group related Indicators #1

Open
ddurvaux opened this issue Oct 18, 2017 · 1 comment
Open

Issue to group related Indicators #1

ddurvaux opened this issue Oct 18, 2017 · 1 comment

Comments

@ddurvaux
Copy link
Contributor

ddurvaux commented Oct 18, 2017

Idea - get last x indicators and search for related with a piece of code that will look like:

       # --------------------- TEST ---------------------------------------------
	threats = fb.retrieveThreatIndicatorsLastNDays(1)
	# DEBUG
	fd = open("debug.json", "w")
	json.dump(threats, fd, sort_keys=True,indent=4,separators=(',', ': '))
	fd.close()

	# go for related events
	for indicator in threats["data"]:
		related = fb.getRelatedIndicators(indicator["id"])
		fd = open("./test_related/%s.json" % indicator["id"], "w")
		json.dump(related, fd, sort_keys=True,indent=4,separators=(',', ': '))
		fd.close()

	threats = None #stop working here :)
	# END DEBUG
	# --------------------- TEST ---------------------------------------------
@ddurvaux
Copy link
Contributor Author

Issue, apparently no related indicators returned:

{
    "data": []
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant