Scraping information from the internet is perfectly legal. As long as you're gathering publicly available data (in other words, it's not protected by a username and a password), you're not doing anything illegal.