mirror of
https://github.com/nikdoof/globaltalk-scraper.git
synced 2025-12-11 08:42:15 +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": [
|
||||
{
|
||||
"name": "nas-afp",
|
||||
"object": "nas-afp",
|
||||
"type": "TimeLord",
|
||||
"address": "5311.212",
|
||||
"port": "129",
|
||||
"socket": "129",
|
||||
"zone": "Doofnet"
|
||||
},
|
||||
{
|
||||
"name": "nas-afp",
|
||||
"object": "nas-afp",
|
||||
"type": "AFPServer",
|
||||
"address": "5311.212",
|
||||
"port": "128",
|
||||
"socket": "128",
|
||||
"zone": "Doofnet"
|
||||
},
|
||||
{
|
||||
"name": "HP LJ Pro 200 Color",
|
||||
"object": "HP LJ Pro 200 Color",
|
||||
"type": "LaserWriter",
|
||||
"address": "5311.212",
|
||||
"port": "130",
|
||||
"socket": "130",
|
||||
"zone": "Doofnet"
|
||||
},
|
||||
{
|
||||
"name": "nas-afp",
|
||||
"object": "nas-afp",
|
||||
"type": "netatalk",
|
||||
"address": "5311.212",
|
||||
"port": "4",
|
||||
"socket": "4",
|
||||
"zone": "Doofnet"
|
||||
},
|
||||
{
|
||||
"name": "nas-afp",
|
||||
"object": "nas-afp",
|
||||
"type": "Workstation",
|
||||
"address": "5311.212",
|
||||
"port": "4",
|
||||
"socket": "4",
|
||||
"zone": "Doofnet"
|
||||
},
|
||||
{
|
||||
"name": "jrouter v0.0.12",
|
||||
"object": "jrouter v0.0.12",
|
||||
"type": "AppleRouter",
|
||||
"address": "5311.1",
|
||||
"port": "253",
|
||||
"socket": "253",
|
||||
"zone": "Doofnet"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -52,14 +52,14 @@ def nbplkup(zone: str) -> list[(str, str)]:
|
||||
for x in cmd.stdout.split("\n")
|
||||
if x.strip() != ""
|
||||
]:
|
||||
name, endpoint_type, address = node
|
||||
address, port = address.split(":")
|
||||
object, endpoint_type, address = node
|
||||
address, socket = address.split(":")
|
||||
zone_results.append(
|
||||
{
|
||||
"name": name.strip(),
|
||||
"object": object.strip(),
|
||||
"type": endpoint_type.strip(),
|
||||
"address": address,
|
||||
"port": port,
|
||||
"socket": socket,
|
||||
"zone": zone,
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user