Web scraping is the automated extraction and organization of information from websites or online files into a structured format. It is used for data collection, monitoring, research, and indexing, subject to legal, contractual, and ethical constraints.