mirror of
https://github.com/nikdoof/globaltalk-scraper.git
synced 2025-12-13 01:32:22 +00:00
Update terminology to match the protocol specs
This commit is contained in:
24
README.md
24
README.md
@@ -18,45 +18,45 @@ This is an example of the JSON file produced, filtered down to one Zone.
|
|||||||
],
|
],
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"name": "nas-afp",
|
"object": "nas-afp",
|
||||||
"type": "TimeLord",
|
"type": "TimeLord",
|
||||||
"address": "5311.212",
|
"address": "5311.212",
|
||||||
"port": "129",
|
"socket": "129",
|
||||||
"zone": "Doofnet"
|
"zone": "Doofnet"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nas-afp",
|
"object": "nas-afp",
|
||||||
"type": "AFPServer",
|
"type": "AFPServer",
|
||||||
"address": "5311.212",
|
"address": "5311.212",
|
||||||
"port": "128",
|
"socket": "128",
|
||||||
"zone": "Doofnet"
|
"zone": "Doofnet"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "HP LJ Pro 200 Color",
|
"object": "HP LJ Pro 200 Color",
|
||||||
"type": "LaserWriter",
|
"type": "LaserWriter",
|
||||||
"address": "5311.212",
|
"address": "5311.212",
|
||||||
"port": "130",
|
"socket": "130",
|
||||||
"zone": "Doofnet"
|
"zone": "Doofnet"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nas-afp",
|
"object": "nas-afp",
|
||||||
"type": "netatalk",
|
"type": "netatalk",
|
||||||
"address": "5311.212",
|
"address": "5311.212",
|
||||||
"port": "4",
|
"socket": "4",
|
||||||
"zone": "Doofnet"
|
"zone": "Doofnet"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nas-afp",
|
"object": "nas-afp",
|
||||||
"type": "Workstation",
|
"type": "Workstation",
|
||||||
"address": "5311.212",
|
"address": "5311.212",
|
||||||
"port": "4",
|
"socket": "4",
|
||||||
"zone": "Doofnet"
|
"zone": "Doofnet"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "jrouter v0.0.12",
|
"object": "jrouter v0.0.12",
|
||||||
"type": "AppleRouter",
|
"type": "AppleRouter",
|
||||||
"address": "5311.1",
|
"address": "5311.1",
|
||||||
"port": "253",
|
"socket": "253",
|
||||||
"zone": "Doofnet"
|
"zone": "Doofnet"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -52,14 +52,14 @@ def nbplkup(zone: str) -> list[(str, str)]:
|
|||||||
for x in cmd.stdout.split("\n")
|
for x in cmd.stdout.split("\n")
|
||||||
if x.strip() != ""
|
if x.strip() != ""
|
||||||
]:
|
]:
|
||||||
name, endpoint_type, address = node
|
object, endpoint_type, address = node
|
||||||
address, port = address.split(":")
|
address, socket = address.split(":")
|
||||||
zone_results.append(
|
zone_results.append(
|
||||||
{
|
{
|
||||||
"name": name.strip(),
|
"object": object.strip(),
|
||||||
"type": endpoint_type.strip(),
|
"type": endpoint_type.strip(),
|
||||||
"address": address,
|
"address": address,
|
||||||
"port": port,
|
"socket": socket,
|
||||||
"zone": zone,
|
"zone": zone,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user