import json
from notte_sdk import NotteClient
notte = NotteClient()
with notte.Session() as session:
# perform some operation that creates cookies
# ...
# then save the cookies to json
cookies = session.get_cookies()
with open("cookies.json", "w") as f:
json.dump(cookies, f)
import json
from notte_sdk import NotteClient
notte = NotteClient()
with notte.Session() as session:
# perform some operation that creates cookies
# ...
# then save the cookies to json
cookies = session.get_cookies()
with open("cookies.json", "w") as f:
json.dump(cookies, f)