Is it possible to change an URL which contains percent signs like
http%3A%2F%2Funiversities.ac%2Fshow_article.php%3Fid%3D61&
to normal URL readable by human like
http://universities.ac/show_article.php?id=61
using Selenium?
Is it possible to change an URL which contains percent signs like
http%3A%2F%2Funiversities.ac%2Fshow_article.php%3Fid%3D61&
to normal URL readable by human like
http://universities.ac/show_article.php?id=61
using Selenium?
This doesn't really have anything to do with Selenium. You can use the urlparse
module in the standard library.
from urlparse import unquote # python2
from urllib.parse import unquote # python3
unquote('http%3A%2F%2Funiversities.ac%2Fshow_article.php%3Fid%3D61&')
You can use urllib unquote as follows
url='http%3A%2F%2Funiversities.ac%2Fshow_article.php%3Fid%3D61&'
url=urllib.unquote(url).decode('utf8')