Closing the page
The BrowserSession
object must be closed when finished. This will close the browser, update the response data, and merge new cookies with the session cookies.
>>> page.close()
Note that this is automatically done when using a context manager.
Session cookies are updated:
>>> session.cookies: RequestsCookieJar
<RequestsCookieJar[Cookie(version=0, name='MUID', value='123456789', port=None, port_specified=False, domain='.bing.com', domain_specified=True, domain_initial_dot=True...
Response data is updated:
>>> resp.url: str
'https://www.bing.com/?toWww=1&redig=823778234657823652376438'
>>> resp.content: Union[bytes, str]
'<!DOCTYPE html><html lang="en" dir="ltr"><head><meta name="theme-color" content="#4F4F4F"><meta name="description" content="Bing helps you turn inform...
Last updated