url = 'https://www.nobelprize.org/uploads/2021/10/press-physicsprize2021.pdf' filename = url.split('/')[-1] ## OUTPUT: 'press-physicsprize2021.pdf'