I am trying to scrap a website by it keeps giving me this error
/home/roadsky/Desktop/khayer/node_modules/cheerio/lib/parse.js:69
var oldParent = node.parent || node.root,
^
TypeError: Cannot read property 'parent' of undefined
at Function.exports.update (/home/roadsky/Desktop/khayer/node_modules/cheerio/lib/parse.js:69:25)
at module.exports (/home/roadsky/Desktop/khayer/node_modules/cheerio/lib/parse.js:19:11)
at Function.exports.load (/home/roadsky/Desktop/khayer/node_modules/cheerio/lib/static.js:27:14)
at parsePage (/home/roadsky/Desktop/khayer/index.js:12:18)
at Request._callback (/home/roadsky/Desktop/khayer/index.js:55:6)
at Request.self.callback (/home/roadsky/Desktop/khayer/node_modules/request/request.js:188:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/home/roadsky/Desktop/khayer/node_modules/request/request.js:1171:10)
at emitOne (events.js:77:13)
via roadsky
No comments:
Post a Comment