title: How to Get a line of text from html to Python
body: <p>Im creating a program that prints out the Ip adress of the User.
  So what im trying to do is to get the Html of ipchicken.com and print out only the "Name Address" Part.
  here is my code so far:</p>
  
  <pre><code>import urllib              
  sock = urllib.urlopen("http://ipchicken.com")
  htmlSource = sock.read()           
  sock.close()
  print htmlSource
  </code></pre>
  
  <p>Now how do i get the ip part of the html printed out?</p>
  
  <p>and if there are other ways to get an ip of the user using python,please include that aswell :) </p>