The program I am currently working on retrieves URLs from a website and puts them into a list. What I want to get is the last section of the URL.
So, if the first elemen
This should work if you plan to use regex
for link in link_list: file_names.append(link.replace('.*/','')) print(file_names)