title: Tweepy lookup_user for large list of user_id
body: <p>I want to get the user data using a large list (over 100k) of follower id's from twitter with Tweepy library (python 2.7). Below is my code:       </p>
  
  <pre><code>def lookup_user_list(followers_id, api):
      full_users = []
      users_count = len(followers_id)
      try:
         for i in range((users_count / 100) + 1):
             full_users.extend(api.lookup_users(user_ids=followers_id[i*100:min((i+1)*100, users_count)]))
             print 'getting users batch:', i
  
      except tweepy.TweepError as e:
            print 'Something went wrong, quitting...', e
            time.sleep(15 * 60)
  
      return full_users
  </code></pre>
  
  <p>The api argument of the function being the Tweepy authentication setup and config with consumer keys, consumer secret, access token and access secret.</p>
  
  <p>When I run this like so:</p>
  
  <pre><code>results = lookup_user_list(followers_id, api)
  </code></pre>
  
  <p>After getting the 448 batch of user data, I get the error below:</p>
  
  <pre><code>Something went wrong, quitting... Failed to send request: HTTPSConnectionPool(host='api.twitter.com', port=443): Read timed out. 
  </code></pre>
  
  <p>is there a way to fix this error and iterate over full list of id to get the corresponding user data?</p>