is it possible to store cookies to file when you use webkit and reuse it again next time when I run my application?
I know its old question and have been looking for the answer all over the place. Finally came up on my own after some trial and error. Hope this helps others.
from gi.repository import Soup
cookiejar = Soup.CookieJarText.new("<Your cookie path>", False)
cookiejar.set_accept_policy(Soup.CookieJarAcceptPolicy.ALWAYS)
session = WebKit.get_default_session()
session.add_feature(cookiejar)