title: Python - Is it possible to run different proxies (auth) for each multithread?
body: <p>So I am wondering if its possible to run from a file (with proxies) and add it up to each profiles <code>Json</code> for every thread I am doing. In that case if I do have etc 5 profiles then right now every profile will get a each thread: ETC</p>
  
  <pre><code>def main():
  
      log("Loaded # of profiles: " + Fore.CYAN + str(configLen) + Fore.RESET)
      mylocale = config['event']['locale']
      locale = 'en_%s' % mylocale
      threads = []
      for i in range(configLen):
          t = threading.Thread(target=start, args=(str(i),locale,))
          threads.append(t)
          t.start()
  </code></pre>
  
  <p>However I tried to add up:</p>
  
  <pre><code>t = threading.Thread(target=start, args=(str(i),locale,), proxies=proxies)
  </code></pre>
  
  <p>but then I realized I need to do something like</p>
  
  <pre><code>proxies = config['test']['profile_' + str(thread)]['proxy']
  
  proxies = {
      'https': 'https://' + proxies
  }
  </code></pre>
  
  <p>to actually be able to give the proxies to work but I'm not sure if that is possible. What suggestions do you guys have and maybe is this even possible to do?</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>proxies = {'http': "http://username:password@IP:PORT", 
             'https': "http://username:password@IP:PORT", 
  }
  
  threads = []
  for i in range(configLen):
      t = threading.Thread(target=start, args=(str(i),locale,), proxies=proxies)
      threads.append(t)
      t.start()
  </code></pre>
  
  <p>I have done like this but then it gives me a error saying : </p>
  
  <blockquote>
    <p>TypeError: <strong>init</strong>() got an unexpected keyword argument 'proxies'</p>
  </blockquote>