title: python asynchronous httprequest
body: <p>I am trying to use twitter search web service in python. I want to call a web service like:</p>
  
  <pre><code>http://search.twitter.com/search.json?q=blue%20angels&amp;rpp=5&amp;include_entities=true&amp;result_type=mixed
  </code></pre>
  
  <p>from my python program.</p>
  
  <p>Can anybody tell me </p>
  
  <ol>
  <li><p>how to use xmlhttprequst object in python</p></li>
  <li><p>how to pass parameters to it, and</p></li>
  <li><p>how to get the data in dictionary.</p></li>
  </ol>
  
  <p>Here is my try:</p>
  
  <pre><code>import urllib
  import sys
  url = "http://search.twitter.com/search.json?q=blue%20angels&amp;rpp=5&amp;include_entities=true&amp;result_type=mixed"
  urlobj = urllib.urlopen(url)
  data = urlobj.read()
  print data
  </code></pre>
  
  <p>Thanks.</p>