Technically it isn’t. Even though LinkedIn, like most websites, doesn’t want people to scrape data from them, the actual process won’t get you in any trouble with the law.