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
Crawls a url and prints out the report.
Parameters
url
: String that represents the initial url to crawlqueries
: List of valid CSS selectors a stringsoptions
: Keyword list of options like[{:connections, 10}]
Examples
iex> Sputnik.start("https://spawnfest.github.io", ["a", "h1,h2,h3"], [{:connections, 10}])