It's a bit of a gray area and really depends on how you got the data and what kind of data it is. Generally, scraping publicly available information isn’t outright illegal, but selling it can cross legal or ethical lines, especially if the data is copyrighted, proprietary, or includes personal info like emails or phone numbers is not legal. Many sites also have terms of service explicitly banning scraping, and breaking those could get you into legal trouble. If the data is non-sensitive, public, and doesn’t violate any rules, you might be okay; so always double check the data and what you are going to do. Better safe than sorry!