Add the crawl job API and Tor diagnostics - #82
Merged
Conversation
Expose stable JSON crawl reports and cancellable REST jobs for desktop clients. Add Tor configuration discovery, crawler safety controls, structured logs, tests, and refreshed operational documentation.
Split link extraction, response guards, HTML analysis, and child scheduling into focused helpers without changing the crawl report contract.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Why
TorBot App previously had no stable backend integration surface. The concurrent crawler also removed the older REST service and only logged results, which made it difficult for desktop and automation clients to consume crawl state safely.
Impact
Clients can now start, poll, and cancel jobs through
/api/v1/jobs. They can also inspect SOCKS reachability and localtorrcdetails through/api/v1/tor/status. CLI users retain list/tree output and gain a stable-f jsonformat.Validation
go vet ./...go test -race -cover ./...go build -trimpath ./cmd/mainhttps://example.comRelated issues
Closes #44
Closes #72
Closes #74
Closes #76
Addresses part of #77