title: Creating an array in Python from a web stream
body: <p>I'm just starting out with python 2.7 and trying to perform a rather basic data manipulation task.</p>
  
  <p>Objective: pull a list from a website and manipulate the data line by line.</p>
  
  <p>However I am falling at the second hurdle; putting the data in to an array that can later be manipulated.</p>
  
  <p>I have tried several methods and instead of processing each array entry per line it is instead processing an array entry per character. Here's are the methods I have so far tried:</p>
  
  <pre><code>import urllib2, numpy 
  from array import array
  listraw = urllib2.urlopen("https://zeustracker.abuse.ch/blocklist.php?download=badips").read()
  list = [line.rstrip('\n\r') for line in listraw]
  array = []
  for line in listraw:
      array.append(line)
  numpyarray = numpy.asarray(listraw)
  
  lines = tuple(listraw)
  #print r'Listraw:'
  #print listraw
  print 'Single List item: '
  print list [10]
  print array[10]
  print lines[10]
  print numpyarray[10]
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Single List item: 
  #
  #
  #
  Traceback (most recent call last):
    File "./test.py", line 17, in &lt;module&gt;
      print numpyarray[10]
  IndexError: too many indices for array
  </code></pre>
  
  <p>I have tried both <code>\n</code> and <code>\r</code> solo in the list variable with no success. If I uncomment the <code>print listraw</code> it shows the entire list with carriage returns in the correct locations.</p>
  
  <p>I know I am missing something basic because <code>array2= ["bob","bert","geof"]</code> works, but everything I have found to date has not solved my problem. What is the best way to achieve my goal?</p>