just vibe coded a bash script for that using "nak" in the backend:
https://github.com/girino/nostr_relay_traverser
(it starts with one relay and gets all events of kind 3 and 10002 from it, then gets the new relays from this list and repeats for up to "THRESHOLD " levels.