Long web scraping script works