Skip to content

Instantly share code, notes, and snippets.

@andrisasuke
Created June 12, 2017 04:22
Show Gist options
  • Save andrisasuke/8ecc7863b37b4b6b0a281928aa9c9942 to your computer and use it in GitHub Desktop.
Save andrisasuke/8ecc7863b37b4b6b0a281928aa9c9942 to your computer and use it in GitHub Desktop.
Query param url encode in python
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