Das ist der Jeopardy-Clone, den ich in Anlehnung an das 36C3-Event geschrieben habe. Wer immer Lust hat, darf und soll Fragen beisteuern
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
584 B

#!/usr/bin/env python3
# -.-coding=UTF8 -.-
#
# This example requires the requests library be installed. You can learn more
# about the Requests library here: http://docs.python-requests.org/en/latest/
# source: https://stackoverflow.com/questions/2311510/getting-a-machines-external-ip-address-with-python
from requests import get
def my_public_ip():
''' Getting the public V4-IP from ipify.org'''
return get('http://api.ipify.org').text
def main(args):
return "Your public ip is: "+my_public_ip()
if __name__ == '__main__':
import sys
sys.exit(main(sys.argv))