Commit 7e4b120a authored by Joshua Roesslein's avatar Joshua Roesslein Committed by GitHub

Merge pull request #1036 from TimmDay/master

updated cursor_tutorial with extended_tweet instructions
parents e6616fed 1a1869a9
......@@ -91,3 +91,19 @@ What if you only want n items or pages returned? You pass into the items() or pa
# Only iterate through the first 3 pages
for page in tweepy.Cursor(api.user_timeline).pages(3):
process_page(page)
Include Tweets > 140 Characters
-------------------------------
Since twitter increased the maximum characters allowed in a tweet from 140 to 280, you may notice that tweets greater than 140 characters are truncated with a ...
If you want your results to include the full text of the long tweets make these simple changes:
- add the argument tweet_mode='extended' to your Cursor object call
- change your usages of .text to .full_text
.. code-block :: python
# example code
tweets = tweepy.Cursor(api.search, tweet_mode='extended')
for tweet in tweets:
content = tweet.full_text
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment