How to get Python to not encode my urls -
i've got simple script opens uri in appropriate application. it's not web browser (not http).
i've been using webbrowser, opens in right application, url encodes everything, frustrating. there's easy way see problem, trying open google search:
webbrowser.open('https://www.google.com/#q=sdfs dfs') this breaks because try's open:
https://www.google.com/%23q=sdfs%20dfs and google returns error. i've been trying figure out how turn off url encoding, haven't turned anything. i'm not married webbrowser, whatever is, it'd need able open different url types, urllib doesn't:
urllib2.urlerror: <urlopen error unknown url type: jjur> thoughts?
Comments
Post a Comment