class Crawler implements Countable, IteratorAggregate
Crawler eases navigation of a list of \DOMNode objects.
Methods
__construct(mixed $node = null, string $currentUri = null, string $baseHref = null)
string getUri() Returns the current URI.
string getBaseHref() Returns base href.
clear() Removes all the nodes.
add(DOMNodeList|DOMNode|array|string|null $node) Adds a node to the current list of nodes.
addContent(string $content, null|string $type = null) Adds HT