added function to loop through both vegetable and plant URLs