textoutpc.misc – Miscellaneous utilities#

textoutpc.misc.get_url_with_params(url: str, **kwargs: str | None) → str#

Get an URL with additional or without some query parameters.

Parameters:

url – The URL to modify.

textoutpc.misc.get_url_param(url: str, name: str, /) → str#

Get a specific query parameter from an URL.

Parameters:
  • url – The URL to get the parameter from.

  • name – The name of the query parameter to get.

Returns:

Value, or empty string if the parameter was not present.