How do I url unencode in Python?

前端 未结 3 1152
轻奢々
轻奢々 2020-12-11 02:58

Given this:
It%27s%20me%21

Unencode it and turn it into regular text?

3条回答
  •  有刺的猬
    2020-12-11 03:07

    Take a look at urllib.unquote and urllib.unquote_plus. That will address your problem. Technically though url "encoding" is the process of passing arguments into a url with the & and ? characters (e.g. www.foo.com?x=11&y=12).

提交回复
热议问题