import requests, urllib.request, urllib.parse, urllib.error


class NoQuotedCommasSession(requests.Session):

    def send(self, *a, **kw):
        a[0].url = a[0].url.replace(urllib.parse.quote(','), ',')
return requests.Session.send(self, *a, **kw)
s = NoQuotedCommasSession()
s.get("http://somesite.com/an,url,with,commas,that,won't,be,encoded.")
How to prevent python requests from percent encoding my URLs?