python request url encode code example
Example 1: python urlencode with requests
>>> import requests
>>> requests.utils.quote('[email protected]')
'test%2Buser%40gmail.com'
Example 2: python urlencode
import urllib.parse
query = 'Hellö Wörld@Python'
print(urllib.parse.quote(query))
>> 'Hell%C3%B6%20W%C3%B6rld%40Python'