I am trying to fix urls like "https://example.com/test?q=Some query text"
Following method not working:
from urllib.parse import quote
quote("https://example.com/test?q=Some query text")
>>> 'https%3A//example.com/test%3Fq%3DSome%20query%20text'
Query text cames randomly