Python filter/remove URLs from a list,list2 = [line for line in file if 'CONTENT_ITEM_ID' in line]