Foresight (Foresight v0.2.4) View Source

Documentation for Foresight.

Link to this section Summary

Functions

Get a page struct if the URL is a real website.

Get a page struct if the URL is a real website, otherwise return error.

Link to this section Functions

Get a page struct if the URL is a real website.

Examples

iex> Foresign.get_page("https://google.com") {:ok,

%Foresight.Page{
  description: "Hurra for Halloween 2020! #GoogleDoodle",
  image: "https://www.google.com/logos/doodles/2020/halloween-2020-6753651837108597.5-2xa.gif",
  title: "Google",
  url: "https://google.com"
}

}

Get a page struct if the URL is a real website, otherwise return error.

Examples

iex> Foresign.get_page("https://google.com") %Foresight.Page{

description: "Hurra for Halloween 2020! #GoogleDoodle",
image: "https://www.google.com/logos/doodles/2020/halloween-2020-6753651837108597.5-2xa.gif",
title: "Google",
url: "https://google.com"

}