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

not able to get all the comments for a tweet. #132

Open
Sri-harsha99 opened this issue Dec 2, 2023 · 1 comment
Open

not able to get all the comments for a tweet. #132

Sri-harsha99 opened this issue Dec 2, 2023 · 1 comment

Comments

@Sri-harsha99
Copy link

Sri-harsha99 commented Dec 2, 2023

What is the difference between get_comments and get_tweet_comments? Also, I'm not getting entire comments for a tweet. A tweet has 800 as a reply count. But I'm getting only 200 comments. That too I'm getting 150 comments at first, and if requested again using cursor from the previous response, I'm getting 10 more comments. I'm doing this 4 times so, 150+4*10 ~ 200.

My code block:
``

  commentCursor = None
  while commentCount < 500 and cur != 5:
      try:
         commentsData = tweet.get_comments(pages=50,wait_time=5,cursor=commentCursor, get_hidden=True)
         cur += 1
         commentCursor = commentsData.cursor
         do something with commentsData.tweets

``

@Sri-harsha99 Sri-harsha99 changed the title Difference between get_comments and get_tweet_comments ? not able to get all the comments for a tweet. Dec 4, 2023
@mahrtayyab
Copy link
Owner

If possible can you please post tweet id

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

2 participants