Crawler v0.3.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

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