Created
June 12, 2017 04:22
-
-
Save andrisasuke/8ecc7863b37b4b6b0a281928aa9c9942 to your computer and use it in GitHub Desktop.
Query param url encode in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
query_param = urllib.quote('+6281908765') | |
url = 'http://localhost:8080/test?phone=%s' % query_param | |
print 'clean url ', url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment