[Tutor] saving webpage as webarchive

Alan Gauld alan.gauld at btinternet.com
Tue Mar 1 04:28:00 EST 2016


On 01/03/16 04:32, Benjamin Fishbein wrote:
> This seems like it should be simple, but I can’t find any answer with the docs or google.
> I’m on a Mac. OSX Yosemite 10.10.5
> I want to save a webpage as a webarchive, and not just get the text.
> I hope there’s a way to do it without saving all of the images separately.

The Webarchive format is unique to Apple Safari. As such
you will likely have to use some kind of Apple/MacOS
library to create it. I don't know what that interface
looks like but you might find something on the Apple
developer site.

You should try asking on the MacPython forums too,
since they may know if the required API exists in
a Python module.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list