DEV Community

TechShreyash
TechShreyash

Posted on

How to get exact filename from a url in python ?

I am trying to download a file from a direct download link to a image.

How to get the filename from a url like this
https://unsplash.com/photos/Qcefx5xENeA/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTZ8fGFuaW1lfGVufDB8fHx8MTY1MDE2NjYwOQ&force=true

Top comments (0)