title: Getting tweets by date with tweepy
body: <p>I pulled the max amount of tweets allowed from USATODAY which was 3000. </p>
  
  <p>Now I want to create a script to automatically pull USATODAY's tweets at 11:59PM of every day. </p>
  
  <p>I was going to use the stream api but then I will have to keep it running the whole day. </p>
  
  <p>Can I get some insight on how to create a script where it runs the REST API every night at 11:59PM to pull the day's tweets? If not does anyone know how to pull tweets based on date? </p>
  
  <p>I was thinking about placing an ifelse statement in my for loop but that seems inefficient, because it will have to search through 3000 tweets every night.  </p>
  
  <p>This is what I have now: </p>
  
  <pre><code>client = MongoClient('localhost', 27017)
  db = client['twitter_db']
  collection = db['usa_collection']
  auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
  auth.set_access_token(access_token_key, access_token_secret)
  
  api = tweepy.API(auth)
  
  for tweet in tweepy.Cursor(api.user_timeline,id='USATODAY').items():
      collection.insert(tweet._json)
  </code></pre>