1

I have a querystring like a=2&b=3 created by serialize() jQuery. How to get a and b with a Python function?

1 Answer 1

5

python2: urlparse.parse_qs()

python3: urllib.parse.parse_qs

Sign up to request clarification or add additional context in comments.

6 Comments

it seems urlparse.parse_qs() get query string from url. i need to get a and b separately like a=2 b=3
need to get a and b separately like a=2 b=3
What other idea could you possibly need? Did you try looking at the returned dictionary?
... Stop picking random functions and use the one I gave you.
what is this error? when i run this code: urlparse.parse_qs('a=1&b=2') 'function' object has no attribute 'parse_qs'
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.