For example,
NSData *data = [[[[self.webView mainFrame] DOMDocument] webArchive] data];
BOOL success = [data writeToFile:path atomically:YES];
Reference: How do you save to WebArchive webView editable content?
Reference: webArchive | raizan2ame
If you can't read .webarchive files written by you own app, my article "I can't open .webarchive files made by my own app." may help.