scraped data cleared when invalid url provided