MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _walk

Method _walk

IntelOSINT.py:984–995  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

982 next_cursor = None
983
984 def _walk(node):
985 nonlocal next_cursor
986 if isinstance(node, dict):
987 page_info_node = node.get("page_info") or node.get("pageInfo")
988 if isinstance(page_info_node, dict):
989 if page_info_node.get("has_next_page") and page_info_node.get("end_cursor"):
990 next_cursor = str(page_info_node.get("end_cursor"))
991 for vv in node.values():
992 _walk(vv)
993 elif isinstance(node, list):
994 for e in node:
995 _walk(e)
996 _walk(data)
997 cursor = next_cursor
998 if not cursor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected