-
Notifications
You must be signed in to change notification settings - Fork 67
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
How can we get all the comments on a post ? #192
Comments
Iterating over this list will give you ConversationThread objects has attribute of Iterating over ConversationThread will give you Tweet object. On this object you get comments = client.get_tweet_comments("1798731573723815974", 1, get_hidden=True)
for _thread in comments:
print(_thread) # This is ConversationThread
for comment in _thread:
print(comment) # This is Tweet
print(comment.text)
print(comment.media) |
Just like this post, there are 3 comments in the web post of tweets[0], and only 2 comments in the iterative access. Although there is a cursor, I also tried to use the cursor to obtain the third comment, but it still couldn't be obtained. Is it that the api of this project can't support more levels of comment data |
You can call |
I'll try again. Thank you very much |
I'm using your project interface to get comment data from a user's post, But when I use the app.get_tweet_comments method, getting the comments doesn't match what I get on the page.
app.get_tweet_comments("1798731573723815974", 1, cursor = 'PAAAAPAtPBwcFr7E1vGNnr32MRUCAAAYJmNvbnZlcnNhdGlvbnRocmVhZC0xNzk4NzQ3MDk4MTU1OTgzMjc0IgAA', get_hidden = True)
I read the documentation and couldn't find a way to fix it,
The text was updated successfully, but these errors were encountered: