Tweepy search and treat result

python
tweepy
search

#1

Hi there,

I post here since the http://discuss.tweepy.org/ doesn’t work anymore.

I’m looking for a module to make research in tweeter (the
research bar) and take the profile id/username of all the profile in
link with the research.

I have seen the api tweepy, i think the answer i’m looking for is hide in thes 2 fonction:
search_users
_lookup_users

    #!/usr/bin/env   python                                                                       
     #-*-coding:utf-8-*-                                                                                                                                                                       

    import tweepy, time, sys

    CONSUMER_KEY = '#'

    
    CONSUMER_SECRET = '#'
    ACCESS_KEY = '#'

    ACCESS_SECRET = '#'

    auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)

    auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)

    api = tweepy.API(auth)

    liste2 = ["X", "Y", "Z"]

    i = 0

    while (liste2[i] != '\0'):

       file = api.search.users(liste2[i])

      print "passed"

       i = i + 1

I still got nothing for list all the profile match with the search.

the doc : https://github.com/tweepy/tweepy/blob/master/tweepy/api.py

Thanks :slight_smile: