View Source Crawler.Parser.LinkParser (Crawler v1.5.0)
Parses links and transforms them if necessary.
Summary
Functions
Parses links and transforms them if necessary.
Functions
Parses links and transforms them if necessary.
Examples
iex> LinkParser.parse(
iex> {"a", [{"hello", "world"}, {"href", "http://hello.world"}], []},
iex> %{},
iex> &Kernel.inspect(&1, Enum.into(&2, []))
iex> )
"{\"href\", \"http://hello.world\"}"
iex> LinkParser.parse(
iex> {"img", [{"hello", "world"}, {"src", "http://hello.world"}], []},
iex> %{},
iex> &Kernel.inspect(&1, Enum.into(&2, []))
iex> )
"{\"src\", \"http://hello.world\"}"