Added while loop to scrape incase no links are found at first