`len(set(urls))` is equivalent to `len(list(set(urls)))`. No need to turn it back into a list before getting the length.