I have been trying to retrieve conversation threads using Tweepy, and although the functionality has been added to the Twitter api (conversation_id is an optional parameter), it has not been added to Tweepy. I was wondering if anyone was familiar enough with Tweepy that they might know a way to achieve this?
Question posted in Twitter API
The official Twitter API documentation can be found here.
The official Twitter API documentation can be found here.
2
Answers
Here is my code to get the conversation_id and also to download the conversations. Hopefully it helps people with similar issues. I have only included the required functions not the whole files, so I haven't listed the modules required like requests and base64, but they should be quite obvious.
The code to get the bearer token and create the header I got from here with the Twitter API - how can I get authentication for the engagement endpoint using a bearer token but I reposted below for convenience
Tweepy does not support v2 of the API yet, although there are plans for this in the coming year.
2022 Edit: Tweepy does support the latest Twitter API at this time.