Unfortunately, not all scraping is legal or ethical. In 2019, Linkedin lost a lawsuit, setting a precedent that web scraping is legal, but only under certain circumstances. Scraping can be illegal if it is used to collect confidential or copyrighted information. Only data that is available to the public can be scraped. Information that can specifically identify someone is off-limits, as well as other sensitive information.