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
No media when retreiving a list of tweets #1931
Comments
https://docs.tweepy.org/en/stable/client.html#tweepy.Client.get_list_tweets |
That is interesting because the error message indicates that there is a |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I have just tried @calvinh99 suggestion with no success again: tweepy.errors.BadRequest: 400 Bad Request
The `expansions` query parameter value [attachments.media_keys&media.fields] is not one of [author_id,referenced_tweets.id,referenced_tweets.id.author_id,entities.mentions.username,attachments.poll_ids,attachments.
media_keys,in_reply_to_user_id,geo.place_id] I guess a possible workaround is to get the id of the tweet and, from there, get each tweet with the media URL. Unless you think it is possible to retrieve the media using the media keys. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks for the bug report. This should be fixed now. This was due to the Twitter API documentation for the endpoint this method uses not listing
@phisanti I don't see that on that page, and @spirale21
@calvinh99 @phisanti Yes, the request URL ends up with @R2SH2 That's not related to this issue. |
@Harmon758 how soon do you think you could create a new release for this? I can pull the dev version locally for the fix but I'd prefer not to have to push that to my production environment if possible Thanks! |
I'll have a v4.10.1 bugfix release out soon. |
v4.10.1 has been released with this fix now. |
I am trying to get a tweets from a list with its media but apparently, the media_field is not present and gives the error:
and here is the error
The query parameter [media_fields] is not one of [id,max_results,pagination_token,expansions,tweet.fields,media.fields,poll.fields,place.fields,user.fields]
Any help?
The text was updated successfully, but these errors were encountered: