Krptkn.HtmlParser (Кропоткин Framework v0.1.0) View Source

This module parses and extracts as many as URLs as possible from a given HTML file.

Link to this section Summary

Functions

Extracts the URLs of a given html page.

Link to this section Functions

Link to this function

get_urls(req_url, string)

View Source

Extracts the URLs of a given html page.

Returns a list of strings.

Examples

iex> Krptkn.HtmlParser.get_urls("https://stallman.org/index.html", "<html> [...] </html>")
[
  "https://stallman.org/admin/",
  "https://stallman.org/private-images/",
]