From 21802f9856fe8847c481f51c73d5c661b531bfc0 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 10 Feb 2021 13:18:49 -0600 Subject: [PATCH] Require q parameter for API.search_users --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 2d5d1dd..9fb1715 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -481,11 +481,11 @@ class API: @pagination(mode='page') @payload('user', list=True) - def search_users(self, *args, **kwargs): + def search_users(self, q, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-search """ return self.request( - 'GET', 'users/search', *args, endpoint_parameters=( + 'GET', 'users/search', q, *args, endpoint_parameters=( 'q', 'count', 'page' ), **kwargs ) -- 2.25.1