title: Python script running slow
body: <p>For some reason, this code is running extremely slow</p>
  
  <p>I have tried replacing proxies, but that didn't seem to be the issue</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  
  ipLogger = "";#link for logger
  agent = "X";
  referer = "X";
  scrapeHttpsProxies = 0;
  
  print("Botting Link: " + ipLogger);
  
  proxies = open("https.txt", "r");
  
  print("Found " + str(sum(1 for line in open('https.txt')))+ " HTTPS Proxies.");
  
  while True:
      for x in proxies:
          if x != "":
              try:
                  headers = {
                      "user-agent": agent,
                      "referer": referer
                  };
                  proxy = {
                      "https": x.strip()
                  }
                  req = requests.get(url=ipLogger, headers=headers, proxies=proxy, timeout=5);
                  status = req.status_code;
                  if status == 404:
                      print("Connection error - Bad Proxy");
                  elif status == 403:
                      print("Connection error - Bad Proxy");
                  elif status == 200:
                      print("Working request with proxy: " + x.strip());
                  else:
                      print("Unknown Status Code:", status);
              except IOError:
                  print("Connection error - Bad Proxy");
  
  print("\nFinished sending requests!");
  </code></pre>
  
  <p>I expected this to run rather fast, and go through proxies fast, but it actually goes relatively slow</p>