Package | Description |
---|---|
com.jaunt |
Jaunt [website] is a web-scraping & automation library that provides a lightweight HTTP useragent (headless browser), including JSON parser.
|
Modifier and Type | Field and Description |
---|---|
JNode |
UserAgent.json
The JSON object created as a result of the most recent request, where response type was JSON.
|
Modifier and Type | Method and Description |
---|---|
JNode |
JNode.findEach(String query)
Searches descendant nodes and returns a JNodes container that holds all
JNodes matching the query, not including those nodes that are descendants
of any matching nodes (ie, excludes nested matches); returns an empty JNodes
container if no matching JNodes were found or if the method is invoked on a leaf node.
|
JNode |
JNode.findEvery(String query)
Searches descendant nodes and returns a JNodes container that holds all
JNodes matching the query; returns an empty JNodes container if no matching
JNodes were found or if the method is invoked on a leaf node.
|
JNode |
JNode.findFirst(String query)
Searches descendant nodes and retrieves the first
JNode that matches the specified query, or throws a NotFound Exception if
no matching JNode is found; throws a NotFound Exception if
no matching JNode is found, or if this method is invoked on a leaf node.
|
JNode |
JNode.get(int index)
Returns the JNode at the specified position or throws a NotFound Exception if the specified position is out of bounds.
|
JNode |
JNode.get(String name)
Returns the child node associated with the specified name or throws a NotFound Exception if the name does not exist as a key; if the specified name is associated with the value null, then a JNode of Type.UNDEFINED is returned.
|
JNode |
JNode.getEach(String query)
Searches only child nodes (not all descendants) and returns a JNodes
container that holds all JNodes matching the query; returns an empty JNodes container
if no matching JNodes were found or if the method is invoked on a leaf node.
|
JNode |
JNode.getFirst(String query)
Searches only child nodes (not all descendants) and retrieves the first
JNode that matches the specified query; throws a NotFound Exception if
no matching JNode is found, or if this method is invoked on a leaf node.
|
JNode |
JNode.getParent()
Returns the parent node or null if no parent node exists (such as for the root Node).
|
JNode |
UserAgent.openJSON(File file)
Parses the JSON within the specified File, and creates UserAgent.json to represent the root node of the JSON object (which is also returned by this method).
|
JNode |
UserAgent.openJSON(String json)
Parses the specified JSON and creates UserAgent.json to represent the root node of the JSON object (which is also returned by this method).
|
Modifier and Type | Method and Description |
---|---|
Iterator<JNode> |
JNode.iterator()
If this JNode is of TYPE_OBJECT, returns returns an iterator over the child JNodes; otherwise returns null.
|