title: How to do parallel requests using python for 1000 requests?
body: <p>How to do parallel requests using python?</p>
  
  <p>My code so far: </p>
  
  <pre class="lang-py prettyprint-override"><code>x = ("address")
  x.signin(signin.request())
  # this code signs in the user and generate the response how to do a parallel response. 
  </code></pre>
  
  <p>Looked into those but couldn't figure out where to use that</p>
  
  <pre><code>import asyncio
  import requests
  
   async def main():
       loop = asyncio.get_event_loop()
       futures = [
          loop.run_in_executor(
              None, 
              requests.get, 
              'http://example.org/'
          )
          for i in range(20)
      ]
      for response in await asyncio.gather(*futures):
          pass
  
  loop = asyncio.get_event_loop()
  loop.run_until_complete(main())
  </code></pre>
  
  <p>looked into this thread also:<br>
  <a href="https://stackoverflow.com/questions/2632520/what-is-the-fastest-way-to-send-100-000-http-requests-in-python">What is the fastest way to send 100,000 HTTP requests in Python?</a></p>