URI encoding in Python Requests package URI encoding in Python Requests package python python

URI encoding in Python Requests package


You can use requests.utils.quote (which is just a link to urllib.parse.quote) to convert your text to url encoded format.

>>> import requests>>> requests.utils.quote('test+user@gmail.com')'test%2Buser%40gmail.com'