duck.utils.urldecode

Module containing function for decoding encoded urls.

Module Contents

Functions

url_decode

Decodes a URL-encoded string.

url_encode

Encodes a string into URL-encoded format.

API

duck.utils.urldecode.url_decode(encoded_url)[source]

Decodes a URL-encoded string.

Parameters:

encoded_url – The URL-encoded string.

Returns:

The decoded URL string.

Return type:

str

duck.utils.urldecode.url_encode(raw_url)[source]

Encodes a string into URL-encoded format.

Parameters:

raw_url – The raw string to be URL-encoded.

Returns:

The URL-encoded string.

Return type:

str