I am looking for a way to extract a filename and extension from a particular url using Python
lets say a URL looks as follows
picture_page = \"http://dis
filename = picture_page.split('/')[-1].split('.')[0] file_ext = '.'+picture_page.split('.')[-1]