Crawler v0.1.0 Crawler.Worker.Parser

Link to this section Summary

Link to this section Functions

Link to this function mark_processed(arg1)

Examples

iex> Parser.parse(%{page: %Crawler.Store.Page{body: "Body"}, opts: []})
%Crawler.Store.Page{body: "Body"}

iex> Parser.parse(%{page: %Crawler.Store.Page{
iex>   body: "<a href='http://localhost/'>Link</a>"
iex> }, opts: []})
%Crawler.Store.Page{body: "<a href='http://localhost/'>Link</a>"}

iex> Parser.parse(%{page: %Crawler.Store.Page{
iex>   body: "<a href='http://localhost/' target='_blank'>Link</a>"
iex> }, opts: []})
%Crawler.Store.Page{body: "<a href='http://localhost/' target='_blank'>Link</a>"}