-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
I can't get public_metrics with method get_users_tweets #1914
Comments
For code block usage, see https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks. |
Got it, returns the dict public_metrics {'retweet_count': 228, 'reply_count': 1354, 'like_count': 1562, 'quote_count': 76} |
Yes, that's working as expected. I'm still unable to reproduce the output in your initial comment.
As you said, the Tweet objects are hidden when pasted outside a code block, due to the angle brackets. As for
|
Hi,
I'm having trouble recently with tweepy anda API V2
I can't get public_metrics with method get_users_tweets
This is what I have inside the paginator,
r=client.get_users_tweets(id=user_id,
tweet_fields='public_metrics',
start_time = '2022-06-10T18:02:14Z',
max_results=100)
only the r.data, is filled with .id and .text
I don't know if the metrics were supposed to be on .includes since they were not meant to be expansions (i think) but is empty anyway.
I could not understand the few explanations out there, nor could I find anyone else who did.
I hope you can help with this.
thanks in advance
Andre Holanda
here is the output os response 'r'
r
Out[48]: Response(data=[, , , , , ], includes={}, errors=[], meta={'result_count': 6, 'newest_id': '1536354739134283776', 'oldest_id': '1535421211848630274'})
r.data
Out[49]:
[,
,
,
,
,
]
r[0]
Out[56]:
[,
,
,
,
,
]
r[1]
Out[57]: {}
r[2]
Out[58]: []
r[3]
Out[59]:
{'result_count': 6,
'newest_id': '1536354739134283776',
'oldest_id': '1535421211848630274'}
The text was updated successfully, but these errors were encountered: