title: python : Split string separated by a pipe symbol "|"
body: <p>Have a look at the following string:</p>
  
  <pre><code>E|1256280||2014-01-05 17:54:00|1|2014-01-05 18:59:53|True
  </code></pre>
  
  <p>I'd like to split it wrt. the pipe symbol "|". Therefore I use the following python code (where line is a string containing the described string above):</p>
  
  <pre><code>                print line
                  print str(type(line))
                  print str(line[1])
                  parts = line.split['|']
                  print str(parts)
  </code></pre>
  
  <p>However, when using this piece of code i get the following error:</p>
  
  <pre><code>E|1256280||2014-01-05 17:54:00|1|2014-01-05 18:59:53|True
  &lt;type 'str'&gt;
  |
  Traceback (most recent call last):
    File "/path/to/my/pythonscritp.py", line 34, in crawl_live_quotes
      parts = line.split['|']
  TypeError: 'builtin_function_or_method' object is not subscriptable
  </code></pre>
  
  <p>However, I don't understand what I am doing wrong here. Any suggestions?</p>