title: Python requests irritatingly slow
body: <p>I made a program to find available /id/ on Steam using requests, but it takes a very long time. If anybody knows any way to make requests faster, please inform me of this. </p>
  
  <pre><code>
  
  w = open("not taken.txt", "a")
  f = open("og_users.txt", "r")
  
  def is_steam_customurl_taken(id):
      r = requests.get("https://steamcommunity.com/id/%s" % id)
      if ("The specified profile could not be found.".lower() in r.text.lower()):
          return False
      return True
  
  lines = f.readlines()
  for line in lines:
      username = line.strip()
      if is_steam_customurl_taken(username):
          print("%s is taken" % username)
      if not is_steam_customurl_taken(username):
          w.write(username)
          w.write("\n")
          print("%s is not taken" % username)
  w.close()
  f.close()
  </code></pre>