Python percent encoding only certain characters in a URL
Python percent encoding only certain characters in a URL Question: I have to percent encode only # character if it appears in a given url. I know that we can encode a URL using urllib.quote. It takes a safe keyword to set a particular character to be safe for the URL. I am looking for …