Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 619 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 619 Bytes

X-Client-Transaction-ID

Twitter X-Client-Transaction-Id generator written in python.

Reference : https://antibot.blog/twitter/

Usage/Examples

python quickstart.py

OR

from x_client_transaction import ClientTransaction

response = None # get twitter home page response (check quickstart.py)
method = "POST"
path = "/1.1/jot/client_event.json"

ct = ClientTransaction(home_page_response=response)
print(ct.generate_transaction_id(method=method, path=path))
print(ct.generate_transaction_id(method="GET", path="/i/api/1.1/hashflags.json"))