roundabout,
created on Wednesday, 2 April 2025, 14:32:55 (1743604375),
received on Wednesday, 2 April 2025, 14:32:57 (1743604377)
Author identity: vlad <vlad.muntoiu@gmail.com>
e5ba70247ba87aa125a5da547f170f870181bee3
download_data.py
@@ -24,13 +24,18 @@ base_types = {
"waste": set(), } memoisation = {} def get_objects(object_info): if object_info["id"] in memoisation: return memoisation[object_info["id"]]objects = set() for object in object_info["children"]: #print(f"Scanning {object}") info = httpx.get("https://datasets.roundabout-host.com/api/object/" + object).json() objects |= get_objects(info) objects.add(object_info["id"]) memoisation[object_info["id"]] = objectsreturn objects for object_name in base_types: