The URL contains a "[" within, and I've tried to encode the path from "[" to "%5B%27", but it didn't work: from urllib.parse import quotepath = ""encoded_path = quote(path)
In my url, [ is followed by ', therefore I missed typing for an additional %27but I still encountered the same issue with the remove response back False