Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with_tweet_replies is still returning replies even if its value is set to False #72

Open
raymelon opened this issue Aug 14, 2024 · 0 comments

Comments

@raymelon
Copy link

raymelon commented Aug 14, 2024

Hi @iSarabjitDhiman! First of all, great job in building this package.

Upon using the package, I noticed that with_tweet_replies is still returning replies even if its value is set to False

I am using with_tweet_replies for get_tweet():

tweet_data = twitter.get_tweet(tweet_id, with_tweet_replies=False, end_cursor=None, total=1, pagination=True)

I also noticed that the replies are housed in threaded_conversation_with_injections_v2
The field shows up in the output if I set with_tweet_replies to False

On the other hand, the same field is not showing up in the output if I set with_tweet_replies to True
The field where the replies are is in the itemContent field

While this does not break the main use of disabling with_tweet_replies which is to use the endpoint without a session, it still makes the output huge.

A temporary solution whould be checking "entries":[], finding every "content": {} block that has "__typename": "TimelineTimelineModule", and cleaning them out of the output.

I would like to know if anyone else is experiencing the same issue.

Let's have a discussion in this thread. Cheers everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant