Search code examples
twittertweepy

Using Tweepy (Twitter API) to return list of users where name contains .btc


I'm learning tweepy.

Have been doing some testing and using the get_users.py from github. It enables me to bring back information based on user_ids ie

user_ids = [2244994945, 6253282]

This is handy but I'm trying to display a list of users the meet a certain criteria, ie end in .BTC

I'm wondering if anyone knows if the get_users is suitable for this and how it should be specified?

Thanks


Solution

  • You can use the search_users method (see here), but there is no way to build a query like the one you're asking for. The only workaround I see would be to use this method to search for .btc and then process the results to keep only the account that meet your criteria.