Beispiel #1
0
class Crawler(object):
    def __init__(self):
        self.twitter_api = TwitterAPI()
        self.api = self.twitter_api.get_api()

    def play(self):
        for follower in self.api.followers():
            print follower.name, follower.location
Beispiel #2
0
 def __init__(self):
     self.twitter_api = TwitterAPI()
     self.api = self.twitter_api.get_api()