Decode escaped characters in URL
urllib.unquote(
string)
Replace
%xx
escapes by their single-character equivalent.
Example:
unquote('/%7Econnolly/')
yields'/~connolly/'
.
And then just decode.
Update:For Python 3, write the following:
import urllib.parseurllib.parse.unquote(url)