Documentation - NanoDankster/Skraper GitHub Wiki

Summary

Effects

Request document

Request a html document from a website with optional user agent, timeout and referer.

request document from {_url} with user agent {_agent} and timeout {_timeout} and referrer {_referer}
Syntaxes

request [html] doc[ument] (of|from) [url] %string% [(with|using) user agent %-string% [and] timeout %-integer% [and] refer[r]er %-string%]

Since
1.0-BETA

Expressions

Attribute of element

Get the specified attribute of an element.

set {_attribute} to attribute "abs:href" of element {_element}
Syntaxes

[the] attribute %string% of [[html] element] %htmlelement%

Since
1.0-BETA
Return type
Text none

Body of document

Get the html body of a document as an element.

set {_body} to html body of document {_document}
Syntaxes

[html] body (of|from) [document] %htmldocument%

Since
1.2
Return type
htmlelement none

Elements from document or element

Get the specified elements of a document or an element.

set {_elements::*} to elements "a[href]" of document {_document}
set {_elements::*} to elements "a[href]" of element {_element}
Syntaxes

[the] element[s] %string% (of|from) (0¦[[html] doc[ument]] %-htmldocument%|1¦[[html] element] %-htmlelement%)

Since
1.0-BETA
Return type
htmlelement none

Head of document

Get the html head of a document as an element.

set {_head} to html head of document {_document}
Syntaxes

[html] head (of|from) [document] %htmldocument%

Since
1.2
Return type
htmlelement none

Inner/outer html of element

Get the inner or outer html of a htmlelement as a htmldocument.

set {_inner} to inner html of element {_element}
set {_outer} to outer html of element {_element}
Syntaxes

(0¦inner|1¦outer) html (of|from) [element] %htmlelement%

Since
1.2
Return type
htmldocument none

Last received document

Get the last document received from the document request effect.

set {_document} to last received html document
Syntaxes

[the] [last[ly]] [received] [html] doc[ument]

Since
1.0-BETA
Return type
htmldocument none

Tag name of element

Get the tag name of an element.

set {_tag} to html tag of element {_element}
Syntaxes

[the] [html] tag [name] of %htmlelement%

Since
1.0-BETA
Return type
Text none

Text of element

Get the text of an element.

set {_text} to html text of element {_element}
Syntaxes

[the] [html] text of %htmlelement%

Since
1.0
Return type
Text none

Title of document

Get the html title of a document.

set {_title} to html title of document {_document}
Syntaxes

[html] title (of|from) %htmldocument%

Since
1.2
Return type
Text none
⚠️ **GitHub.com Fallback** ⚠️