-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get authenticated user info? #168
Comments
@guntutur You can if you use from twscrape import API
from twscrape.models import parse_tweets
api = API()
await api.pool.add_account("user1", "pass", "mail1@gmail.com", "")
await api.pool.add_account("user2", "pass", "mail2@ymail.com", "")
await api.pool.login_all()
async for rep in api.user_tweets_raw(target_id):
print(rep.__username) # either user1 or user2
for tweet in parse_tweets(rep.json()):
... |
Thanks andy, will try, is there any particular reason why |
@guntutur Good question. I don’t know the answer I’m afraid. It’s possible it’s just set for debugging purposes, and later discarded. It’s set just here: twscrape/twscrape/queue_client.py Line 209 in 00a8e07
then it’s discarded when Line 327 in 00a8e07
|
i am using pool login for multiple account to get
user_tweets
i just want to know from which logged in user (user1 or user2) the particular user tweet is acquired
The text was updated successfully, but these errors were encountered: