The legality of email scraping varies by jurisdiction. In many places, scraping email addresses without permission can be considered a violation of privacy laws and anti-spam regulations, such as the CAN-SPAM Act in the United States and the GDPR in the European Union.