Closed BSiddharth closed 2 years ago
mainImage
is not supported when using query chain. Please take a look at the docs: https://dijs.github.io/wiki/QueryChain.html
@dijs Thankyou for responding. I went through the docs and noticed that. image()
kind of works for some pages but for most it does not work (example batman). And .chain().content().request(); Useful for extracting structured section content
too is not structured like it is when called independently in const content = await page.content();
Unfortunately, the underlying request the chain image
function uses is much simpler than the mainImage
function. So this currently works with some pages and not others. Not exactly sure why yet.
I am trying to do something like this.
Error: