Sputnik v0.2.0 Sputnik View Source

This is the main entrance for the Sputnik program.

Link to this section Summary

Functions

This function is the main entrance for the CLI and it is not meant to be used directly

Crawls a url and prints out the report

Link to this section Functions

This function is the main entrance for the CLI and it is not meant to be used directly.

# inside the project folder
$ mix escript.build
$ ./sputnik "http://spawnfest.github.io" --query "a" --query "h1,h2,h3" --connections 10
Link to this function start(url, queries \\ [], options \\ []) View Source

Crawls a url and prints out the report.

Parameters

  • url: String that represents the initial url to crawl
  • queries: List of valid CSS selectors a strings
  • options: Keyword list of options like [{:connections, 10}]

Examples

iex> Sputnik.start("https://spawnfest.github.io", ["a", "h1,h2,h3"], [{:connections, 10}])