> For the complete documentation index, see [llms.txt](https://wiki.dewaka.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.dewaka.com/programming-languages/python/cookbook.md).

# Python Cookbook

* Unescape Python URL - <https://stackoverflow.com/questions/8136788/decode-escaped-characters-in-url>

  ```python
  # Python 2
  urllib.unquote(url)

  # Python 3
  urllib.parse.unquote(url)
  ```
