"examples/vscode:/vscode.git/clone" did not exist on "c1cacde61d61a2d1d933bf253f44151c8ea135fd"
parse_object_invs.py 398 Bytes
Newer Older
wuxk1's avatar
wuxk1 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import requests
import sphobjinv

url = "https://nunchaku.tech/docs/nunchaku/objects.inv"
response = requests.get(url)
response.raise_for_status()

with open("objects.inv", "wb") as f:
    f.write(response.content)

inv = sphobjinv.Inventory("objects.inv")

base_url = "https://nunchaku.tech/docs/nunchaku/"

for item in inv.objects:
    print(f"{item.name} -> {base_url}{item.uri} ({item.role})")