mirror of https://github.com/MISP/misp-modules
Update countrycode.py
parent
1e1e694169
commit
0b0f57b30c
|
@ -20,10 +20,12 @@ common_tlds = {"com":"Commercial (Worldwide)",
|
|||
"gov":"Government (USA)"
|
||||
}
|
||||
|
||||
codes = requests.get("http://www.geognos.com/api/en/countries/info/all.json").json()
|
||||
codes = False
|
||||
|
||||
def handler(q=False):
|
||||
global codes
|
||||
if not codes:
|
||||
codes = requests.get("http://www.geognos.com/api/en/countries/info/all.json").json()
|
||||
if q is False:
|
||||
return False
|
||||
request = json.loads(q)
|
||||
|
|
Loading…
Reference in New Issue