polyglot.webarchive (class) ∞
-
class
polyglot.
webarchive
(log, settings=False)[source] ∞ *Generate a macOS webarchive given the URL to a webpage *
- Key Arguments:
log
– loggersettings
– the settings dictionary
Usage:
To setup your logger, settings and database connections, please use the
fundamentals
package (see tutorial here).Generate a webarchive docuemnt from a URL, use the following:
from polyglot import webarchive wa = webarchive( log=log, settings=settings ) wa.create(url="https://en.wikipedia.org/wiki/Volkswagen", pathToWebarchive=pathToOutputDir + "Volkswagen.webarchive")
Methods
__init__
(log[, settings])create
(url, pathToWebarchive)create the webarchive object