title: import web based .txt file into python
body: <p>I think this is simple but I am not finding an answer that works. The data importing seems to work but separating the &quot;/&quot; numbers doesnt code is below. thanks for the help.</p>
  <pre><code>import urllib.request
  opener = urllib.request.FancyURLopener({})
  url = &quot;http://jse.amstat.org/v22n1/kopcso/BeefDemand.txt&quot;
  f = opener.open(url)
  content = f.read()
  # below are the 3 different ways I tried to separate the data
  content.encode('string-escape').split(&quot;\\x&quot;)
  content.split('\r')
  content.split('\\') 
  </code></pre>