MCPcopy
hub / github.com/DedSecInside/TorBot / print_tor_ip_address

Function print_tor_ip_address

torbot/main.py:19–26  ·  view source on GitHub ↗

https://check.torproject.org/ tells you if you are using tor and it displays your IP address which we scape and display

(client: httpx.Client)

Source from the content-addressed store, hash-verified

17
18
19def print_tor_ip_address(client: httpx.Client) -> None:
20 """
21 https://check.torproject.org/ tells you if you are using tor and it
22 displays your IP address which we scape and display
23 """
24 resp = get_ip(client)
25 print(resp["header"])
26 print(color(resp["body"], "yellow"))
27
28
29def print_header(version: str) -> None:

Callers 1

runFunction · 0.85

Calls 2

get_ipFunction · 0.90
colorClass · 0.90

Tested by

no test coverage detected