Python HTML source code
Question: I would like to write a script that picks a special point from the source code
and returns it. (print it)

    
    
    import urllib.request                           
    
    Webseite = "http://myip.is/"                    
    html_code = urllib.request.urlopen(Webseite)
    
    print(html_code.read().decode('ISO-8859-1'))
    

This is my current code. I would like to print only the IP address that the
website gives. The input of this I will print in python (title="copy ip
address").


Answer: You could use [jsonip](http://jsonip.com) which returns a JSON object that you
can easily parse using standard Python library

    
    
    import json
    from urllib2 import urlopen
    
    my_ip = json.load(urlopen('http://jsonip.com'))['ip']
    

