def testListCall():
    dirname = '/z/pyongjoo_data/dolan'
    listfile = os.path.join(dirname, 'testSignalUsers4.txt')
    output_dir = os.path.join(dirname, 'crawled_tweets_200')

    user_id_list = [l.rstrip('\n') for l in open(listfile)]

    m.callList(user_id_list, output_dir)
def run():
    dirname = "/z/pyongjoo_data/dolan"
    listfile = os.path.join(dirname, "randomUsers4.txt")
    output_dir = os.path.join(dirname, "crawled_tweets_200")

    os.path.exists(listfile)
    os.path.exists(output_dir)

    user_id_list = [l.rstrip("\n") for l in open(listfile)]

    m.callList(user_id_list, output_dir)
Exemple #3
0
def run():
    dirname = 'some_location'
    listfile = os.path.join(dirname, 'signalUsers4.txt')
    output_dir = os.path.join(dirname, 'crawled_tweets_200')

    if not os.path.exists(output_dir):
        os.mkdir(output_dir)

    assert(os.path.exists(listfile))
    assert(os.path.exists(output_dir))

    user_id_list = [l.rstrip('\n') for l in open(listfile)]

    m.callList(user_id_list, output_dir)