def cookies2har(cookies):
    if isinstance(cookies, QVariant):
        cookies = cookies.toPyObject()
    return [cookie2har(cookie) for cookie in (cookies or [])]
Convert QList<QNetworkCookie> to HAR format
dataset/ETHPy150Open scrapinghub/splash/splash/har/qt.py/cookies2har