Crawler v0.3.0 Crawler.Parser.Guarder
Detects whether a page is parsable.
Link to this section Summary
Functions
Examples
Link to this section Functions
Link to this function
pass?(body, opts)
Examples
iex> Guarder.pass?(
iex> "",
iex> %{html_tag: "link"}
iex> )
true
iex> Guarder.pass?(
iex> "",
iex> %{html_tag: "img"}
iex> )
false
iex> Guarder.pass?(
iex> "",
iex> %{html_tag: "link", headers: [{"Content-Type", "image/png"}]}
iex> )
false
iex> Guarder.pass?(
iex> image_file(),
iex> %{html_tag: "link"}
iex> )
false