I am trying to get a JSON formatted tree of the market groups like in the market browser, eve marketer, etc.
So far I am able to pull the invMarketGroups.csv file from fuzzwork, but I am struggling to build a tree with just parent nodes. Does anyone have some code I could look at for this? I’m working in Python but can read other stuff pretty easily.
It wouldn’t be terrible to dynamically build this out. I.e. Fuzzwork Market Data Browser only does an initial request to its API to get the root groups, then each click on a group fetches the groups a part of the root group. The responses are cached so multiple clicks on the same group do not result in multiple requests.
Seems kinda wasteful to do this every time. At the least you could just do it once and cache it somewhere so it doesn’t matter too much if it’s not super pretty.