#!/usr/bin/python import urllib data = {} poststring = "this=example&is=rad" for i in urllib.unquote(poststring).split("&"): k, v = i.split("=") data[k] = v print v