Skip to content

Instantly share code, notes, and snippets.

@luztak
Created June 26, 2012 08:53
Show Gist options
  • Save luztak/2994515 to your computer and use it in GitHub Desktop.
Save luztak/2994515 to your computer and use it in GitHub Desktop.
Parse url parameters into dict.
def parseurlpara(parastr):
plist=parastr.split("&")
pdict={}
for item in plist:
itema=item.split("=")
pdict[itema[0]]=itema[1]
return pdict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment