I'm trying to extract the filename from a download URL that not only end with the filename itself but an extra data is attached to the URL after the filenamehttps://some_website.com/folder/file_name.mkv?st=OyvPiQZL8HmbCkapHo-tLg&e=1571543844
I tried using the os.path.basename in python.It includes the filename and the extra content itself like the above link return
file_name.mkv?st=OyvPiQZL8HmbCkapHo-tLg&e=1571543844
instead of
file_name.mkv