Files
NijiHolo_EN_ID_Bot/src/catchup.py
T

21 lines
581 B
Python
Raw Normal View History

2022-09-10 00:47:47 -05:00
## The bot's catch-up mode
# Scan all accounts for cross-company interactions.
# Terminates when finished scanning and posting.
2022-09-24 04:02:19 -07:00
#
# We should post, at the fastest, one tweet per minute.
2022-09-10 00:47:47 -05:00
2022-09-12 01:31:09 -07:00
import os
from util import *
2022-09-24 04:02:19 -07:00
from api import TwAPI
2022-09-12 01:31:09 -07:00
## Returns list of tweets present in queue.txt
def get_local_queue():
2022-09-24 04:02:19 -07:00
# f = open(os.path.join(get_project_dir(), 'queue.txt'))
2022-09-12 01:31:09 -07:00
pass
2022-09-10 00:47:47 -05:00
def run():
2022-09-12 01:31:09 -07:00
queue = get_local_queue()
2022-09-24 04:02:19 -07:00
pairs = TwAPI.instance.get_users_all_tweets_mentions(1390620618001838086, count=5)
for (tweet, mentions) in pairs:
print_tweet(tweet, mentions)