Correct usage of setTimeout instead of setInterval to keep calling spider.
Better (Correct) handling of getting data from websites.
Remove html test part.