Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Handling throttling for Citadel.

smicallefffe2ec1a59bb
diff --git a/modules/sfp_citadel.py b/modules/sfp_citadel.py
index f4eafd6b..590662a1 100644
--- a/modules/sfp_citadel.py
+++ b/modules/sfp_citadel.py
@@ -14,6 +14,7 @@ import json
import urllib.error
import urllib.parse
import urllib.request
+import time
from spiderfoot import SpiderFootEvent, SpiderFootPlugin
@@ -104,6 +105,10 @@ class sfp_citadel(SpiderFootPlugin):
timeout=self.opts['timeout'],
useragent=self.opts['_useragent'])
+ if res['code'] == "429":
+ time.sleep(10)
+ return self.queryEmail(email)
+
if res['content'] is None:
self.sf.debug('No response from Leak-Lookup.com')
return None