Install npm install dom-selector-cheerio Usage import { getDomInfo } from 'dom-selector-cheerio' let res = await getDomInfo('https://www.xxx.com','a') console.log('res',res)