Class: CrawlerContext

Defined in: src/kermit/Crawler.Context.coffee

Overview

A container for properties that need to be shared among all instances of ExtensionPoint and Extension of a given Crawler. Each Crawler has its own, distinct context that it passes to all its extension points.

Any Extension or ExtensionPoint may modify the context to expose additional functionality to other Extensions or ExtensionPoints

Instance Method Summary

Constructor Details

# (void) constructor(config)

Construct a new CrawlerContext

Parameters:

  • config ( Object ) The configuration object for this context

Options Hash: (config):

  • crawler ( Crawler ) The crawler that created this context
  • execute ( Function ) A function handle to execute an extension point
  • log ( bunyan.Logger ) A logger to handle log messages

Instance Method Details

# (void) schedule(url, meta)

See also:

# (void) crawl(url, meta)

Access to execution logic of

See also:

# (CrawlerContext) fork()

Create a child context that shares all properties with its parent context. The child context exposes a method to share properties with all other child contexts

Returns:

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: