in Education by
I'm using tweepy to access a large number of tweets. Many tweets are truncated, so I want to get the full text of some tweets, which I have the id for. My problem is: The tweepy api instance has one method of downloading multiple tweets at once (api.statuses_lookup), but this returns truncated tweets. It also has a method that includes the full tweet text (api.get_status), but which afaik only takes one tweet at a time. Is there way of getting the full text for multiple tweets at once? import tweepy consumer_key = "XXX" secret = "XXX" auth = tweepy.AppAuthHandler(consumer_key, secret) auth.secure = True api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True) ids = [1108360183586140161, 1108474125486641153] # Finds tweets (up to 100 at a time), but doesn't contain extended text foo = api.statuses_lookup(ids) # Returns tweet, including extended text, but only for one at a time bar = api.get_status(1108449077937635328, tweet_mode='extended') JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
As pointed out by Andy Piper, the issue was fixed in a recent update of the Tweepy library, so running pip install tweepy --upgrade solves this.

Related questions

0 votes
    I have had a project in mind where I would download all the tweets sent to celebrities for the last ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 27, 2022 in Education by JackTerrance
0 votes
    We are building sentiment analysis application and we converted our tweets dataframe to an array. We created another array ... .txt").getLines.toArray var happyCount=0 for (e...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    We are building sentiment analysis application and we converted our tweets dataframe to an array. We created another array ... .txt").getLines.toArray var happyCount=0 for (e...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    For how many queens was the extended version of Eight Queen Puzzle applicable for n*n squares? a) 5 b) 6 c) 8 d) n...
asked Dec 28, 2022 in Technology by JackTerrance
0 votes
    To configure the admin settings of my app I made a Admin controller and a AdminConfig model. The Admin ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 26, 2022 in Education by JackTerrance
0 votes
    To configure the admin settings of my app I made a Admin controller and a AdminConfig model. The Admin ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Complete the following charts: S.No. Help extended by India Beneficiary Nations 1. Sent Peacekeeping Force to ... produce Hydel Power Bhutan Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    I have a major problem which I can't solve. I'm editing question in order to simplify what really ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Aug 1, 2022 in Education by JackTerrance
0 votes
    A 200 μA ammeter has an internal resistance of 200 Ω. The range is to be extended to 500μA. The shunt required ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 12, 2021 in Education by JackTerrance
0 votes
    Can arrays in JavaScript be extended? 1. Yes, they can be 2. No, they cannot be 3. May be, they can be extended conditionally...
asked Feb 24, 2021 in Technology by JackTerrance
0 votes
    Explain what is Extended Star Schema in SAP?...
asked Jan 5, 2021 in Technology by JackTerrance
+1 vote
    Can arrays in JavaScript be extended? a)Yes, they can be b)No, they cannot be c)May be, they can be extended conditionally...
asked Oct 8, 2020 in Technology by JackTerrance
0 votes
    My model.py: from django.conf import settings from django.db import models from django.db.models.signals ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 1, 2022 in Education by JackTerrance
0 votes
    My model.py: from django.conf import settings from django.db import models from django.db.models.signals ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 29, 2022 in Education by JackTerrance
...