SyntaxFix
Write A Post
Hire A Developer
Questions
You can do like this:
head, tail = os.path.split(url)
Where tail will be your file name.