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)
| 17 | |
| 18 | |
| 19 | def 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 | |
| 29 | def print_header(version: str) -> None: |