mirror of
https://github.com/thegeneralist01/extract-x-bookmarks
synced 2026-01-09 14:50:27 +01:00
13 lines
351 B
Python
13 lines
351 B
Python
cookie_str = input("Input your cookies in the Header String format: ")
|
|
|
|
cookie_dict = dict(item.split("=", 1) for item in cookie_str.split(";"))
|
|
|
|
output_cookies = {}
|
|
auth_token = cookie_dict['auth_token']
|
|
ct0 = cookie_dict['ct0']
|
|
|
|
login_string = f"auth_token={auth_token};ct0={ct0}"
|
|
|
|
with open("creds.txt", "w") as file:
|
|
file.write(login_string)
|
|
|