In general, it is legal to scrape publicly available data, but there are some important exceptions to consider.