polyglot.webarchive module ∞
Generate a macOS webarchive given the URL to a webpage
Author: | David Young |
---|---|
Date Created: | February 24, 2017 |
-
class
polyglot.webarchive.
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")
-
create
(url, pathToWebarchive)[source] ∞ create the webarchive object
- Key Arguments:
url
– the url of the webpage to generate the webarchive forpathToWebarchive
– tthe path to output the the webarchive file to
- Return:
webarchive
– the path to the webarchive (or -1 if the generation fails)
Usage:
See class docstring for usage