The Python Oracle

How can I percent-encode URL parameters in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzling Curiosities

--

Chapters
00:00 Question
00:29 Accepted answer (Score 507)
01:45 Answer 2 (Score 204)
02:06 Answer 3 (Score 63)
02:27 Answer 4 (Score 15)
02:54 Thank you

--

Full question
https://stackoverflow.com/questions/1695...

Accepted answer links:
[the documentation]: https://docs.python.org/2.7/library/urll...
[a bug report about it]: http://bugs.python.org/issue1712522
[UTF-8]: https://en.wikipedia.org/wiki/UTF-8
[urlencode]: https://docs.python.org/2.7/library/urll...
[quote]: https://docs.python.org/3/library/urllib...

Answer 2 links:
[urllib.quote]: http://docs.python.org/2/library/urllib....
[urllib.parse.quote]: http://docs.python.org/3/library/urllib....
[Unicode]: https://en.wikipedia.org/wiki/Unicode

Answer 3 links:
[Paolo's answer]: https://stackoverflow.com/questions/1695...

Answer 4 links:
[Django]: https://en.wikipedia.org/wiki/Django_%28...
[urlquote]: https://docs.djangoproject.com/en/1.10/r...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #url #encoding #urllib #urlencode

#avk47