1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00
twitter-openapi/test/python/login.py
ふぁ 86315f25a0
add test
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-07-30 03:17:47 +09:00

12 lines
260 B
Python

import json
from tweepy_authlib import CookieSessionUserHandler
auth_handler = CookieSessionUserHandler(
screen_name=input("screen_name: "),
password=input("password: "),
)
cookies = auth_handler.get_cookies()
print(json.dumps(cookies.get_dict()))