Skip to content

Instantly share code, notes, and snippets.

@DxDiagDx
Last active July 20, 2023 18:17
Show Gist options
  • Save DxDiagDx/7d3b87e60bedb9ac74c62e71b0683131 to your computer and use it in GitHub Desktop.
Save DxDiagDx/7d3b87e60bedb9ac74c62e71b0683131 to your computer and use it in GitHub Desktop.
Python узнать свой IP-адрес
import requests
response = requests.get('http://jsonip.com')
ip = response.json()['ip']
print('Your public IP is:', ip)
@pruidzeko
Copy link

Sorry, what is "proxies"?

@DxDiagDx
Copy link
Author

Proxies may not be used. This is from a previous project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment