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

missing "parameter" to List Tweets lookup #1993

Closed
11348 opened this issue Oct 27, 2022 · 1 comment
Closed

missing "parameter" to List Tweets lookup #1993

11348 opened this issue Oct 27, 2022 · 1 comment
Labels
Duplicate This is a duplicate Stale This is inactive, outdated, too old, or no longer applicable

Comments

@11348
Copy link

11348 commented Oct 27, 2022

timeline = client.get_list_tweets(id=list_id,
expansions=["author_id", "attachments.poll_ids", "attachments.media_keys",
"referenced_tweets.id", 'referenced_tweets.id.author_id',
'in_reply_to_user_id'],
media_fields=["url"],
tweet_fields=['id', 'text', 'author_id', 'created_at', 'conversation_id', 'entities',
'public_metrics', 'referenced_tweets'])

tweepy.errors.BadRequest: 400 Bad Request
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]

media.fields parameter should have in List Tweets lookup

https://developer.twitter.com/en/docs/twitter-api/lists/list-tweets/api-reference/get-lists-id-tweets

@Harmon758
Copy link
Member

This is a duplicate of #1931 and was fixed with 08d5684 in Tweepy v4.10.1.

Please make sure you're using the latest version when submitting new issues.

For code block usage, see https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.

@Harmon758 Harmon758 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2022
@Harmon758 Harmon758 added Duplicate This is a duplicate Stale This is inactive, outdated, too old, or no longer applicable labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate This is a duplicate Stale This is inactive, outdated, too old, or no longer applicable
Projects
None yet
Development

No branches or pull requests

2 participants