title: Using tweepy to get old tweets
body: <p>I've put together this short script to search twitter. The majority of the tweets from this search date back from a year ago. It was in connection with a kickstarter campaign. When I run this script though I only get newer tweets that aren't relevant to that term anymore. Could anybody tell me what I need to do to get it the way I want? When I search for the terms on twitter it gives me the right results.</p>
  
  <pre><code>import tweepy
  import csv
  
  consumer_key = 'x'
  consumer_secret = 'x'
  access_token = 'x'
  access_token_secret = 'x'
  
  auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
  auth.set_access_token(access_token, access_token_secret)
  # Open/Create a file to append data
  csvFile = open('tweets.csv', 'a')
  #Use csv Writer
  csvWriter = csv.writer(csvFile)
  api = tweepy.API(auth)
  
  
  results = api.search(q="kickstarter campaign")
  
  for result in results:
      csvWriter.writerow([result.created_at, result.text.encode('utf-8')])
      print result.created_at, result.text
  csvFile.close()
  </code></pre>