{"id":29675467,"url":"https://github.com/nullhypothesis/zoossh","last_synced_at":"2025-07-22T23:07:06.378Z","repository":{"id":23997571,"uuid":"27381192","full_name":"NullHypothesis/zoossh","owner":"NullHypothesis","description":"Parsing library for Tor-specific data formats.","archived":false,"fork":false,"pushed_at":"2023-09-15T13:16:05.000Z","size":1744,"stargazers_count":44,"open_issues_count":0,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-19T23:23:47.622Z","etag":null,"topics":["go","parser","tor","tor-network"],"latest_commit_sha":null,"homepage":"https://nymity.ch/sybilhunting/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullHypothesis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-01T13:41:26.000Z","updated_at":"2024-01-01T20:39:15.000Z","dependencies_parsed_at":"2024-06-18T22:43:58.962Z","dependency_job_id":"02e67466-6e7c-48c1-9402-2a2c39ba1960","html_url":"https://github.com/NullHypothesis/zoossh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NullHypothesis/zoossh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullHypothesis%2Fzoossh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullHypothesis%2Fzoossh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullHypothesis%2Fzoossh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullHypothesis%2Fzoossh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullHypothesis","download_url":"https://codeload.github.com/NullHypothesis/zoossh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullHypothesis%2Fzoossh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266586905,"owners_count":23952205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","parser","tor","tor-network"],"created_at":"2025-07-22T23:07:05.574Z","updated_at":"2025-07-22T23:07:06.328Z","avatar_url":"https://github.com/NullHypothesis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![zoossh logo](https://nullhypothesis.github.com/zoossh_logo.png)\n=================================================================\n\n[![Build Status](https://travis-ci.org/NullHypothesis/zoossh.svg?branch=master)](https://travis-ci.org/NullHypothesis/zoossh)\n\nOverview\n--------\nZoossh is a Go parsing library for Tor-specific data formats.  It can parse\nconsensuses and server descriptors.  I originally wrote zoossh as a speedy\nfundament for [sybilhunter](https://github.com/NullHypothesis/sybilhunter), a\ntool to find Sybils in the Tor network.  I have no need for other file types, so\nif zoossh doesn't provide what you need, check out the libraries below.\n\nSupported file formats\n----------------------\nZoossh partially supports the following two file formats:\n\n* Server descriptors (`@type server-descriptor 1.0`)\n* Network status consensuses (`@type network-status-consensus-3 1.0`)\n\nFor more information about file formats, have a look at\n[CollecTor](https://metrics.torproject.org/collector.html#data-formats).\n\nExamples\n--------\nHere's how you can parse a network status document and iterate over all relay\nstatuses:\n\n    consensus, err := zoossh.ParseConsensusFile(fileName)\n    if err != nil {\n        // Handle error.\n    }\n\n    for status := range consensus.Iterate(nil) {\n        fmt.Println(status)\n    }\n\nSimilarly, here's how you can parse a file containing server descriptors:\n\n    descriptors, err := zoossh.ParseDescriptorFile(fileName)\n    if err != nil {\n        // Handle error.\n    }\n\n    for desc := range descriptors.Iterate(nil) {\n        fmt.Println(desc)\n    }\n\nFor more details, have a look at zoossh's\n[GoDoc page](https://godoc.org/github.com/NullHypothesis/zoossh).\n\nAlternatives\n------------\nCheck out the Python library [Stem](https://stem.torproject.org) or the Java\nlibrary [metrics-lib](https://gitweb.torproject.org/metrics-lib.git).  Both\nhave more comprehensive support for data formats.  There is also a\n[comparison available online](https://stem.torproject.org/tutorials/mirror_mirror_on_the_wall.html#are-there-any-other-parsing-libraries)\nbetween Stem, metrics-lib, and zoossh.\n\nContact\n-------\nContact: Philipp Winter \u003cphw@nymity.ch\u003e  \nOpenPGP fingerprint: `B369 E7A2 18FE CEAD EB96  8C73 CF70 89E3 D7FD C0D0`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullhypothesis%2Fzoossh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullhypothesis%2Fzoossh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullhypothesis%2Fzoossh/lists"}