MCPcopy Create free account
hub / github.com/apify/crawlee-python / get_state

Method get_state

src/crawlee/sessions/_session.py:167–167  ·  view source on GitHub ↗
(self, *, as_dict: Literal[True])

Source from the content-addressed store, hash-verified

165
166 @overload
167 def get_state(self, *, as_dict: Literal[True]) -> dict: ...
168
169 @overload
170 def get_state(self, *, as_dict: Literal[False]) -> SessionModel: ...

Callers 5

__repr__Method · 0.95
__eq__Method · 0.95
__hash__Method · 0.95
SessionPoolModelClass · 0.45
test_session_get_stateFunction · 0.45

Calls 2

SessionModelClass · 0.85
get_cookies_as_dictsMethod · 0.80

Tested by 1

test_session_get_stateFunction · 0.36