Open gouravkumar99 opened 3 months ago
`value = "voULhnQT1BNNeq7cD85MFBlwZegqOaciqbSy~bL_7A9Yg3UZsX4XZFQX2xDHTMbLSoiOf8rc4hr6~pSpreX_RrJq7LR13WfXBLslp8sjgnMHfNkLbgqzeCdh5QgKEREd" cookie = { 'name': 'datadome', 'value': value, 'domain': '.uefa.com', 'path': '/', 'expires': cookie.expires, 'httpOnly': False, 'secure': True, 'sameSite': 'Lax' }
with open(f'.session{self.botid}.dat', 'w') as f: json.dump(cookie, f) await self.tab.send(cdp.storage.set_cookies(cookies=[cookie])) await self.browser.cookies.set_all(cookies=[cookie]) await self.browser.cookies.save(file=f'.session{self.botid}.dat') await self.browser.cookies.load(file=f'.session{self.botid}.dat')`
I tried all these methods but cookies are not getting set.
you need remark this line: https://github.com/ultrafunkamsterdam/nodriver/compare/main...max32002:nodriver:main
`value = "voULhnQT1BNNeq7cD85MFBlwZegqOaciqbSy~bL_7A9Yg3UZsX4XZFQX2xDHTMbLSoiOf8rc4hr6~pSpreX_RrJq7LR13WfXBLslp8sjgnMHfNkLbgqzeCdh5QgKEREd" cookie = { 'name': 'datadome', 'value': value, 'domain': '.uefa.com', 'path': '/', 'expires': cookie.expires,
'httpOnly': False, 'secure': True, 'sameSite': 'Lax' }
I tried all these methods but cookies are not getting set.