title: Twitter data pull: How do i specify a range of date for Twitter data pull with specified keywords
body: <p>How do I search and pull data from Twitter containg specific keywords (or search terms) and in a specific data range.</p>
  
  <p>I see that I can use </p>
  
  <pre><code>import tweepy
  #override tweepy.StreamListener to add logic to on_status
  class MyStreamListener(tweepy.StreamListener):
  
      def on_status(self, status):
          print(status.text)
  
  myStreamListener = MyStreamListener()
  myStream = tweepy.Stream(auth = api.auth, listener=myStreamListener())
  myStream.filter(track=['olympics'])
  </code></pre>
  
  <p>But here how do i specify the range of dates, like Jan 1 2016 to august 4, 2016,</p>
  
  <p>Other way would be to use the api.searh</p>
  
  <pre><code>auth = tweepy.OAuthHandler(TwitterAuth.consumer_key, TwitterAuth.consumer_secret)
  auth.set_access_token(TwitterAuth.access_token, TwitterAuth.access_token_secret)
  
  rawParser = RawParser()
  api = tweepy.API(auth_handler=auth, parser=rawParser)
  result=api.search(count=100,q='olympics',result_type="recent")
  </code></pre>
  
  <p>Here ho do i pass the start date and stop date, and how to proceed if there is a list of keywords. I am using Python for programming.</p>