Tweepy / how to use direct_messages method to get older DMs?
<p>I'm very very much new to Python and, yea, Tweepy.</p>

<p>I want to, say see the text of all DMs I've received since such-and-such DM.</p>

<pre><code>import tweepy

consumer_key = "XXXX"
consumer_secret = "YYY"

access_token = "ZZZ"
access_token_secret = "AAA"

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth)


since_id = "11223344556677889" 
#This is the ID of a month-old DM.  I want to get "all" DMs since then, tho I think I'm limited to 200 per call huh?

direct_messages = tweepy.Cursor(api.direct_messages, since_id=since_id).items()

for dm in direct_messages:
        print dm.text
</code></pre>

<p>This gives me the most recent 200 DMs. That's not what I want. I want the old DMs, starting with since_id.</p>

<p>FWIW, I know the DM exists, because this returns it properly:</p>

<pre><code>dm = api.get_direct_message(since_id)
    print dm.text
</code></pre>