Hello all. I’m working on a sentiment analysis research project for school and I am having trouble rehydrating the tweets from the tweet ids of the dataset I have. I configured twarc in the command line and set up my Twitter dev application. The code for the hydration I have is very simple:

But I am getting the following error:

I’m new to using twarc, so I’m not sure where to go from here.

This uses the v1.1 API instead of the v2 API, you need elevated access to use the old v1.1 API so it throws an error.

Try the command line to hydrate tweets from a text file of IDs:

twarc2 hydrate input.txt output.jsonl

Or using the library, use twarc.Client2 - twarc function