In this project, you will use the data structures and algorithms to implement a simple search engine. Your search engine will have the following functions:
String getPage(String url): gets the HTML document of the web page at URL
type getLinks(String page): collects and return all links (URLs) in the web page. You can design what will be the return type.
type addKeyword(): for each word on each page, add to a (keyword, URLs) list or dictionary, excluding articles, pronouns, and prepositions.
For example:
computer: https://www.bestbuy.com, https://www.dbu.edu/computers, ...
For the URLs in the keyword list, sort them by either the number of times the keyword appearing in the pages or the popularity of the pages.
searchKeyword(String keyword): returns a HTML document has links to the URLs which contain the keyword.
Attachment:- CUsersvini1010DesktopWebCrawler.rar