URL Encode A String In Python
September 2021
This code encodes (aka quotes) a string for use in a url query string path:
=
=
Output:
The%20quick%20brown%20fox
There is also this one which uses + for spaces instead of `%20`:
=
=
Output:
The+quick+brown+fox
More details in the docs:
end of line