Skip to content

Commit

Permalink
print Word found just once
Browse files Browse the repository at this point in the history
  • Loading branch information
zntfdr committed Feb 27, 2020
1 parent 74ab2b0 commit 49a7d89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/selenopsCLI/Executor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ final class Executor: CrawlerDelegate {
print("✅ Searching for: \(parameters.wordToSearch)")
print("✅ Starting from: \(parameters.startUrl.absoluteString)")
print("✅ Maximum number of pages to visit: \(parameters.maximumPagesToVisit)")
print("Word found at:")

let crawler = Crawler(
startURL: parameters.startUrl,
Expand All @@ -37,7 +38,7 @@ final class Executor: CrawlerDelegate {
}

func crawler(_ crawler: Crawler, didFindWordAt url: URL) {
print("Word found at: \(url.absoluteString)")
print("\(url.absoluteString)")
}

func crawlerDidFinish(_ crawler: Crawler) {
Expand Down

0 comments on commit 49a7d89

Please sign in to comment.