How can I get the content displayed in a WKWebView?

I have a simple OSX app that retrieves and displays a comma-separated-values (csv) file as text in a WKWebView. I'd like to send the csv data to a file, but my first look at the documentation doesn't show any way to access the contents of the view. Any clues?