Euros v0.2.1 Euros.Page View Source
Provides the function for parse a web page
Link to this section Summary
Functions
Get link uris from response body Ignore duplicate uri
Get link uris from response body Ignore duplicate uri Custom filter
Link to this section Functions
Get link uris from response body Ignore duplicate uri
Example
iex> Euros.HTTP.fetch_pages("http://example.com") |> Euros.Page.link_uris
[%URI{authority: "www.iana.org", fragment: nil, host: "www.iana.org",
path: "/domains/example", port: 80, query: nil, scheme: "http",
userinfo: nil}]
Get link uris from response body Ignore duplicate uri Custom filter
response
- HTTPoison.Responsepattern
- Regexp
Example
iex> Euros.HTTP.fetch_pages("https://euros-test.blogspot.jp") |> Euros.Page.link_uris(~r/test1/)
[%URI{authority: "euros-test.blogspot.jp", fragment: nil,
host: "euros-test.blogspot.jp", path: "/2017/12/test1.html", port: 443,
query: nil, scheme: "https", userinfo: nil}]