github.com/pachyderm/pachyderm@v1.13.4/examples/ml/gpt-2/listen.py (about) 1 #!/usr/bin/python3 2 import twitterscraper as t 3 import tarfile 4 5 while True: 6 tweets = t.query_tweets("#PachydermODSC") 7 with tarfile.open("/pfs/out", "w") as out: 8 for tweet in tweets: 9 out.add("/dev/null", "from:%s" % tweet.username)