Closed flamedmg closed 1 day ago
@flamedmg @arlse In the new version 0.3.74, you can pass cookies to the constructor directly. This is the way you're going to pass. I plan to release this version by tonight.
cookies = [
{"name": "sessionId", "value": "abc123", "domain": ".example.com"},
{"name": "userId", "value": "12345", "domain": ".example.com"}
]
async with AsyncWebCrawler(cookies=cookies) as crawler:
# rest of code
was able to use this approach. but doc still is not correct and confusing. Please fix the documentation and close the issue
I tried this example and i do not see cookie is passed to the new context created after that hook is executed. Same happens to cookies assigned by the web page or server.