Add params to given URL in Python
Posted
by z4y4ts
on Stack Overflow
See other posts from Stack Overflow
or by z4y4ts
Published on 2010-03-24T09:06:21Z
Indexed on
2010/03/24
9:13 UTC
Read the original article
Hit count: 599
Suppose I was given by some URL.
Is might already have GET parameters (e.g. http://stackoverflow.com/search?q=question
) or not (e.g. http://stackoverflow.com/
).
And now I need to add some parameters to it like {'lang':'en','tag':'python'}
so in first case I'll have http://stackoverflow.com/search?q=question&lang=en&tag=python
and in second — http://stackoverflow.com/search?lang=en&tag=python
.
Is there any standard way to do this?
© Stack Overflow or respective owner