Crawler v1.1.1 Crawler.Parser.Guarder
Detects whether a page is parsable.
Link to this section Summary
Functions
Detects whether a page is parsable.
Link to this section Functions
Link to this function
pass?(opts)
Detects whether a page is parsable.
Examples
iex> Guarder.pass?(
iex> %{html_tag: "link", content_type: "text/css"}
iex> )
true
iex> Guarder.pass?(
iex> %{html_tag: "img", content_type: "text/css"}
iex> )
false
iex> Guarder.pass?(
iex> %{html_tag: "link", content_type: "text/css"}
iex> )
true
iex> Guarder.pass?(
iex> %{html_tag: "link", content_type: "image/png"}
iex> )
false