import java.net.URL;
/**
 * A webcrawler.
 * 
 * @author CIS-121 Staff
 */
public class Webcrawler {

	/**
	 * Creates a new {@link WebpageIndex} and crawls up to {@code pagesToCrawl}
	 * pages by starting at {@code startingURL}. For each page it visits, it
	 * creates a new {@link WebpageIndexEntryI} and adds its links to the list
	 * of pages to crawl. The crawler stops visiting new pages either when the
	 * list of pages to crawl is empty or it has visited {@code pagesToCrawl}
	 * pages.
	 * 
	 * @param pagesToCrawl maximum number of pages to crawl through
	 * @param startingURL starting webpage.
	 * @return returns a new {@link WebpageIndex} with at most {@code
	 *         pagesToCrawl} {@link WebpageIndexEntryI} entries.
	 */
	public static WebpageIndex createWebpageIndex(int pagesToCrawl, URL startingURL) {
		
		return null;
	}
}
