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

Method get_query_param_from_url

src/crawlee/_request.py:345–348  ·  view source on GitHub ↗

Get the value of a specific query parameter from the URL.

(self, param: str, *, default: str | None = None)

Source from the content-addressed store, hash-verified

343 return request
344
345 def get_query_param_from_url(self, param: str, *, default: str | None = None) -> str | None:
346 """Get the value of a specific query parameter from the URL."""
347 query_params = URL(self.url).query
348 return query_params.get(param, default)
349
350 @property
351 def label(self) -> str | None:

Callers 1

handlerFunction · 0.80

Calls

no outgoing calls

Tested by 1

handlerFunction · 0.64