Exemplo n.º 1
0
    def create_listener(self):
        make_dir(
            directory=self.dirname)  # generates default konlpy data directory
        listener = CorpusListener(self.options, self.dirname, self.word_list)
        api = listener.api

        self.streamer = tweepy.Stream(auth=api.auth, listener=listener)
 def __init__(self, filename):
     make_dir()
     self.writer = io.open(DATA_DIR + filename, mode='a', encoding='utf-8')
Exemplo n.º 3
0
 def __init__(self, filename):
     make_dir()
     self.writer = io.open(DATA_DIR + filename, mode='a', encoding='utf-8')
Exemplo n.º 4
0
    def create_listener(self):
        make_dir(directory=self.dirname)  # generates default konlpy data directory
        listener = CorpusListener(self.options, self.dirname, self.word_list)
        api = listener.api

        self.streamer = tweepy.Stream(auth=api.auth, listener=listener)