implemented producer/consumer system with asyncio

This commit is contained in:
muskit
2022-09-26 02:44:26 -07:00
committed by msk
parent 0038439728
commit 4575466874
7 changed files with 128 additions and 83 deletions
+1 -1
View File
@@ -51,9 +51,9 @@ def get_username_online(user_id):
c.Store_object = True
c.Hide_output = True
try:
twint.output.users_list.clear()
twint.run.Lookup(c)
user = twint.output.users_list[0]
twint.output.users_list.clear()
return user.username
except:
return f'#{user_id}'