This is an HTTP REST API and command line program to gather and analyze data using web-crawling via TOR. The program is meant to be used in tandem with TorBot, but the API and CLI can be run separately.
.env to retain settings, CLI flags will override environment variables at runtime)-h SOCKS5 proxy host, defaults to localhost (127.0.0.1)-p SOCKS5 proxy port, defaults to 9050-server Starts HTTP servere.g. go run cmd/main/main.go -server
The server can be run using the build.sh command which will build a docker network service for tor and connect it to the gotor docker container.
In order to avoid conflicts, ensure that no other service is running on the same port. It will use the SOCKS5_PORT
e.g. ./build.sh (within the home directory)
You can deconstruct the containers using the destroy.sh command
-d Searching for children nodes of links, defaults to 1-o Output destination, supported formats include:terminal (tree is printed directly to terminal)excel results are saved to .xlsx file in current directoryjson results are saved to .json file in current directorye.g. go run cmd/main/main.go -l https://example.com -d 2 -o excel (Will create a tree of URLs using https.example.com as the root with a depth of 2 and store the results in a .xlsx file)
TOR can be disabled using the USE_TOR flag in .env
This project has been commented in such a way that godoc should produce decent documentation.
godoc
e.g. godoc -v -http=:6060 will produce documentation at the endpoint http://127.0.0.1:6060.
$ claude mcp add gotor \
-- python -m otcore.mcp_server <graph>