Skip to content

moririnson/WKWebViewCrawler

Repository files navigation

WKWebViewCrawler

WKWebViewCrawler is iOS web crawler!

WKWebViewCrawler is iOS web crawler. This is powered by WKWebView.

Requirements

Install

Usage

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)
            }
        }
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published