Page
Library
Module
Module type
Parameter
Class
Class type
Source
Mechaml.Page
SourcePage
This module contains all the functions used to analyze a page, select specific elements, and manage forms.
The type of an html page
Make a new page from a base URI and a Lambdasoup document
Make a new page from a base URI and an HTML string
Return the resolver of page, which is a function that takes relative URIs of the page to absolute ones using the page base URI
Lambdasoup provides lazy sequences to traverse only needed part of an HTML document when used in combination with with_stop
. We provide a wrapper that is compatible with Mechaml types such as forms, images, inputs, etc.
Lazy sequences of HTML elements. See Soup.nodes
type
Operations on lazy sequences
All the following function are built using the same pattern.
forms
) return all the elements of a certain type as a lazy sequence. For example, forms mypage
will return all the forms in the pageNone
if there isn't any. Eg, link_with "[href$=.jpg]" mypage
will try to find a link that point to a JPEG image