Crawler.Parser.Guarder (Crawler v1.1.2) View Source

Detects whether a page is parsable.

Link to this section Summary

Functions

Detects whether a page is parsable.

Link to this section 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