mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 23:13:24 +08:00
Merge remote-tracking branch 'upstream/master' into dev
This commit is contained in:
commit
9bf850bda2
2 changed files with 4 additions and 2 deletions
|
@ -48,9 +48,11 @@ def crawl(self, text):
|
|||
load = json.loads(text)
|
||||
for key in load.keys(): # Iterate through keys of dict.
|
||||
val = load.get(key)
|
||||
if isinstance(val, int) or isinstance(val, dict):
|
||||
if isinstance(val, int) or isinstance(val, dict) or val is None:
|
||||
continue
|
||||
if isinstance(val, list):
|
||||
if len(val) == 0: # Make sure not indexing an empty list
|
||||
continue
|
||||
val = val[0] # First value should be dict.
|
||||
if isinstance(val, dict): # Sanity check.
|
||||
for key in val.keys():
|
||||
|
|
Loading…
Reference in a new issue