Created
April 5, 2013 23:50
-
-
Save jeyraof/5323547 to your computer and use it in GitHub Desktop.
make http get parameter to dictionary.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'jaeyoung' | |
def make(url): | |
tmp = dict() | |
param_line = url.split("?")[1] | |
param_list = param_line.split("&") | |
for param in param_list: | |
par = param.split("=") | |
tmp[par[0]] = par[1] | |
return tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make http get parameter to dictionary like bottom.