A web crawler is a program that automatically browses and extracts data from websites. In Java, one of the most…