Image Uploader Scripting API
Public Member Functions | List of all members
Document Class Reference

Public Member Functions

 Document (string text)
 
CSelection find (string aSelector)
 

Detailed Description

(gumbo-query) HTML document. Example:

local txt = "<h1><a id=\"logo\" class=\"link\">some link</a></h1>";
local doc = Document(txt);
print(doc.find("h1 a").text()+"\r\n");
print(doc.find("h1 a").length()+"\r\n");
print(doc.find("#logo").attr("class")+"\r\n");
nm.doGet("https://svistunov.dev");
doc = Document(nm.responseBody());
doc.find("a").each( function(index,elem) {
print(elem.text()+"-\r\n");
});
Since
version 1.3.2 build 4451