WKWebViewCrawler is iOS web crawler. This is powered by WKWebView.
load url.
let url = URL(string: "https://qiita.com/")!
let request = URLRequest(url: url, method: .get, contentType: "text/html")
client.request(request) { _ in
// request completion.
}
specify query selector.
client.request(request) { _ in
self.client.filter(selector: ".tr-Item") { elements in
if let desc = elements?.description {
print(desc)
}
}
}