Cannot read property 'parent' of undefined cheerio

 关于node 爬虫cheerio报 `Cannot read property 'parent' of undefined `

  Cannot read property 'parent' of undefined   cheerio

 

  解决方案 

在`cheerio.load(content)`中 content是不能null,不然会报错

Cannot read property 'parent' of undefined   cheerio

 

上一篇:nodejs 爬热搜


下一篇:ubuntu docker中文乱码问题