Most of the websites provide APIs and legal authorities to push the data and use for analytics purpose. But most the websites do not allow data surfing due to which most of data engineers try scraping the data from website. It is good to inform the authorities of website that why and what data you want from them and you are scraping to avoid any interdisciplinary action against you because the data websites display to user that only you are scraping so it is legal but after informing.