MCPcopy Create free account
hub / github.com/apify/impit / __getitem__

Method __getitem__

impit-python/python/impit/cookies.py:146–151  ·  view source on GitHub ↗

Get a cookie by name.

(self, name: str)

Source from the content-addressed store, hash-verified

144 return self.set(name, value)
145
146 def __getitem__(self, name: str) -> str:
147 """Get a cookie by name."""
148 value = self.get(name)
149 if value is None:
150 raise KeyError(name)
151 return value
152
153 def __delitem__(self, name: str) -> None:
154 """Delete a cookie by name."""

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected