title: Store os.system( 'curl -u "username:password" "https://<url>") in a python variable to stream data in another framework?
body: <p>I do a lookup on internet using CURL. I automated this using a python script to take an IP as an argument and further run CURL using that. </p>
  
  <p>I tried the following:</p>
  
  <pre><code>maxm = os.system('curl -u  "Username : Password " %s' %url)
  </code></pre>
  
  <p>But still the output gets displayed on terminal and not as value for variable <code>maxm</code>.</p>
  
  <p>I even tried <code>subprocess.Popen</code>. But that dint work though.</p>
  
  <p>Seeking help to resolve this.</p>
  
  <p>Regards
  Richa </p>