polyglot.webarchive (class)

class polyglot.webarchive(log, settings=False)[source]

*Generate a macOS webarchive given the URL to a webpage *

Key Arguments:
  • log – logger
  • settings – 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")  
__init__(log, settings=False)[source]

Methods

__init__(log[, settings])
create(url, pathToWebarchive) create the webarchive object