ladjs / superagent

Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
https://ladjs.github.io/superagent/
MIT License
16.58k stars 1.33k forks source link

how to do something like document.queryselectorAll #1643

Open cydantor856 opened 2 years ago

cydantor856 commented 2 years ago

Hi, guys just started using superagent, and thanks for the awesome plugin. sorry if this is a newbie question. can I know how to go through a table element and get each row into an array to further processing etc.

similar to document.querySelectorAll and document.querySelector usage.

I could not figure it out yet.

just tried something like below but not working

res.text.querySelectorAll(selector)

kindly can anyone tell me what is the correct approach to do so.