def extractLastElementFromLink(link): lastElement = str(link).split("/")[-1] return lastElement