Sputnik v0.2.1 Parse View Source

This module parses the given html string and counts how many CSS selectors there are in it.

Link to this section Summary

Functions

Returns a map of the given CSS selectors with their count

Asyncronously returns a map of the given CSS selectors with their count

Link to this section Functions

Returns a map of the given CSS selectors with their count.

Parameters

  • body: html page as string
  • queries: a list of valid CSS selectors as string
Link to this function start(body, queries, pid) View Source

Asyncronously returns a map of the given CSS selectors with their count.

Parameters

  • body: html page as string
  • queries: a list of valid CSS selectors as string
  • pid: the pid which will receive the output