python: don't use urlparse! (beginner - intermediate) anthony explains #474

preview_player
Показать описание
today I talk about `urlparse`, archaic url formats, and why you should use something else

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

Just went down the rabbit hole on this topic a few weeks ago and I thought urls didn't have any surprises left! Great work as always!

adruzgatsby
Автор

You also should not use urlunsplit, because it cannot handle relative file uri

lonterel
Автор

Hey, I just pushed something using urlparse, and urlsplit will still do exactly what I need. Neat! Thanks for sharing :D

maclarel
Автор

don't use urlparse, use this one weird trick instead. stdlib devs hate it!

..
Автор

Recently also ended up at urlib for joining urls but wasn't happy with urljoin().

I was expecting more sth. like os.path.join(), where I can throw in multiple strings (url parts) and get out one valid url. Can you recommend sth. for that?

enstein
Автор

So about these "even better functions" ...?

teoconserv
visit shbcf.ru