Optional
selector: S | BasicAcceptedElems<T>Either a selector to look for within the document, or the contents of a new Cheerio instance.
Optional
context: null | BasicAcceptedElems<AnyNode>Either a selector to look for within the root, or the contents of the document to query.
Optional
root: BasicAcceptedElems<Document>Optional HTML document string.
Optional
options: CheerioOptions
This selector method is the starting point for traversing and manipulating the document. Like jQuery, it's the primary method for selecting elements in the document.
selector
searches within thecontext
scope which searches within theroot
scope.Example