How to create a new cheerio instance $?
I need to instatiate a new cheerio object, i'm doing a search in a set o elements and need to select just one element for further processing, my actual code is:
but i'm not sure if that is the right way to instantiate a new cheeio object in crawlee.
1 Reply
grumpy-cyan•3y ago
You don't need to use
load()
. Instead of doing this:
Just do this using the $
already provided to you by Crawlee:
It will return a Cheerio object scoped only to that spec
element. 😄