 let maximumPagesToVisit = 10
 
 // Crawler Parameters
-var visitedPages: Set<URL> = []
-var pagesToVisit: Set<URL> = [startUrl]
+var visitedPages: Set<Foundation.URL> = []
+var pagesToVisit: Set<Foundation.URL> = [startUrl]
 
 // Crawler Core
 func crawl() {

  task.resume()
}

func parse(document: String, url: URL) {
  func find(word: String, from document: String) {
    guard document.contains(word) else { return }
    print("✅ Word '\(word)' found at page \(url)")
  }

  func collectLinks(from document: String) -> [URL] {
    let types: NSTextCheckingResult.CheckingType = .link
    let detector = try? NSDataDetector(types: types.rawValue)
    let range = NSRange(0..<document.count)

import Foundation
import TSCUtility

let parser = ArgumentParser(
  usage: "selenops",
  overview: "Searches for the given word on the web"
)

let pageArgument: OptionArgument<String> = parser.add(
  option: "--page",
  shortName: "-p",
  kind: String.self,
  usage: "The starting URL"
)

let wordArgument: OptionArgument<String> = parser.add(
  option: "--word",
  shortName: "-w",
  kind: String.self,
  usage: "The word to look for"
)

let pageNumberArgument: OptionArgument<Int> = parser.add(
  option: "--number",
  shortName: "-n",
  kind: Int.self,
  usage: "The maximum number of pages to visit")

// Input your parameters here
let startUrl = URL(string: "https://developer.apple.com/swift/")!
