title: How to search tweets from an id to another id
body: <p>I'm trying to get tweets using <a href="https://github.com/ckoepp/TwitterSearch" rel="nofollow">TwitterSearch</a> in Python3.</p>
  
  <p>So basically I want to get all tweets between these 2 IDs.</p>
  
  <p><code>748843914254249984</code> -><code>760065085616250880</code></p>
  
  <p>These 2 IDs are from the </p>
  
  <p><code>Fri Jul 01 11:41:16 +0000 2016</code> to <code>Mon Aug 01 10:50:12 +0000 2016</code></p>
  
  <p>So here's the code I made.</p>
  
  <p><code>crawl.py</code></p>
  
  <pre><code>#!/usr/bin/python3               
  # coding: utf-8                  
  
  from TwitterSearch import *
  import datetime
  
  def crawl():
      try:
          tso = TwitterSearchOrder()
          tso.set_keywords(["keyword"])
          tso.set_since_id(748843914254249984)
          tso.set_max_id(760065085616250880)
  
          ACCESS_TOKEN = xxx
          ACCESS_SECRET = xxx
          CONSUMER_KEY = xxx
          CONSUMER_SECRET = xxx
  
          ts = TwitterSearch(
              consumer_key = CONSUMER_KEY,
              consumer_secret = CONSUMER_SECRET,
              access_token = ACCESS_TOKEN,
              access_token_secret = ACCESS_SECRET
          )
  
          for tweet in ts.search_tweets_iterable(tso):
              print(tweet['id_str'], '-', tweet['created_at'])
  
      except TwitterSearchException as e:
          print( e )
  
  
  if __name__ == '__main__':
      crawl()
  </code></pre>
  
  <p>I'm not very familiar with Twitter API and searching with it. But this code should do the job.</p>
  
  <p>But it's giving :</p>
  
  <pre><code>760058064816988160 - Mon Aug 01 10:22:18 +0000 2016
  [...]
  760065085616250880 - Mon Aug 01 10:50:12 +0000 2016
  </code></pre>
  
  <p>Many, many times... Like I got the same lines over and over again instead of getting everything between my two IDs.</p>
  
  <p>So I'm not getting any of the July tweets, any idea why ?</p>