-
Hello, I'm trying to build a query to search users through the import tweepy
import keys
auth = tweepy.OAuthHandler(keys.CONSUMER_KEY, keys.CONSUMER_SECRET)
auth.set_access_token(keys.ACCESS_TOKEN, keys.ACCESS_TOKEN_SECRET)
api = tweepy.API(auth)
users = api.search_users(q="description=vampire", count=10)
print(users)
# [] This site has a Twitter account search tool by bio. Would this be possible through the API provided by Twitter? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
GET users/search, the endpoint that
I believe this includes results based on descriptions. You'll have to filter them out yourself, as there are no other Twitter API endpoints to search for users. |
Beta Was this translation helpful? Give feedback.
GET users/search, the endpoint that
API.search_users
uses:I believe this includes results based on descriptions. You'll have to filter them out yourself, as there are no other Twitter API endpoints to search for users.