View Source Crawler.Parser.Guarder (Crawler v1.5.0)
Detects whether a page is parsable.
Summary
Functions
Detects whether a page is parsable.
Functions
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