# meeseeks
# define a simple filter to extract meta tag ONLY
filter = filter = fn x ->
case x do
{<<"meta">>, value, _} -> true
_ -> false
end
end
# fetch the page and store the response
{:ok, response} = HTTPoison.get(target, headers)
# parse the body and extract the parsed content of /head
response
|> Map.get(:body)
|> Meeseeks.parse
|> Meeseeks.one(xpath("//head"))
|> Meeseeks.tree
Enum.filter(filter)