Url.parse Python2.7 Equivalent
What is the Python2.7 equivalent to from urllib.parse import urlparse, parse_qs parsed_url = urlparse(url) params = parse_qs(parsed_url.query) I get >>> from urllib.pars
Solution 1:
In python2 use
from urlparse import urlparse, parse_qs
parsed_url = urlparse(url)
params = parse_qs(parsed_url.query)
Post a Comment for "Url.parse Python2.7 Equivalent"