Last active
May 13, 2023 14:05
-
-
Save trishantpahwa/3e9f4f1d016b0f54a810ffcf927730ed to your computer and use it in GitHub Desktop.
Prints Public IP.
This file contains 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
import requests | |
response = requests.get('https://api.ipify.org?format=json') | |
print(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment