1# This example requires the requests library be installed. You can learn more
2# about the Requests library here: http://docs.python-requests.org/en/latest/
3
4from requests import get
5
6ip = get('https://api.ipify.org').text
7print 'My public IP address is:', ip