title: how to get unique ip address from list of ip address present in log file using python?
body: <p>I have a log file in text file format. the log file looks like the below format</p>
  
  <pre><code>220.227.40.118 - - [06/Mar/2012:00:00:00 -0800] "GET /mysidebars/newtab.html 
  HTTP/1.1" 404 0 - -
  220.227.40.118 - - [06/Mar/2012:00:00:00 -0800] "GET /hrefadd.xml HTTP/1.1" 
  204 214 - -
  59.95.13.217 - - [06/Mar/2012:00:00:00 -0800] "GET /dbupdates2.xml HTTP/1.1" 
  404 0 - -
  
  111.92.9.222 - - [06/Mar/2012:00:00:00 -0800] "GET /mysidebars/newtab.html 
  HTTP/1.1" 404 0 - -
  120.56.236.46 - - [06/Mar/2012:00:00:00 -0800] "GET /hrefadd.xml HTTP/1.1" 
  204 214 - -
  49.138.106.21 - - [06/Mar/2012:00:00:00 -0800] "GET /add.txt HTTP/1.1" 204 
  214 - -
  
  117.195.185.130 - - [06/Mar/2012:00:00:00 -0800] "GET 
  /mysidebars/newtab.html HTTP/1.1" 404 0 - -
  122.160.166.220 - - [06/Mar/2012:00:00:00 -0800] "GET 
  /mysidebars/newtab.html HTTP/1.1" 404 0 - -
  117.214.20.28 - - [06/Mar/2012:00:00:00 -0800] "GET /welcome.html HTTP/1.1" 
  204 212 - -
  117.18.231.5 - - [06/Mar/2012:00:00:00 -0800] "GET /mysidebars/newtab.html 
  HTTP/1.1" 404 0 - -
  </code></pre>
  
  <p>I want to find each unique ip address present in the log file using python.</p>