'raise BrowserCookieError('Failed to find {} cookie'.format(self.browser)) browser_cookie3.BrowserCookieError: Failed to find Chrome cookie

I try to send message on WahtsApp using python requestes

import requests
import browser_cookie3
cookies = browser_cookie3.chrome(domain_name="web.whatsapp.com")
response = requests.get('https://web.whatsapp.com/send?phone=989058579468&text=%22test%22', verify=False,  cookies=cookies, timeout=3)

print(response)

but I got Error :

raise BrowserCookieError('Failed to find {} cookie'.format(self.browser)) browser_cookie3.BrowserCookieError: Failed to find Chrome cookie


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source