node-yql
node-yql copied to clipboard
example cannot run
https://github.com/derek/node-yql/blob/master/examples/example.js#L20
condition = response.query.results.channel.item.condition;
^
TypeError: Cannot read property 'condition' of undefined
at YQL.exec (/Users/willin/Documents/w2fs/beian-domain/demo/index.js:15:54)
at /Users/willin/Documents/w2fs/beian-domain/demo/node_modules/yql/yql.js:276:9
at /Users/willin/Documents/w2fs/beian-domain/demo/node_modules/yql/yql.js:243:17
at parseJSON (/Users/willin/Documents/w2fs/beian-domain/demo/node_modules/yql/yql.js:335:5)
at YQL._handleResponse (/Users/willin/Documents/w2fs/beian-domain/demo/node_modules/yql/yql.js:229:9)
at Request.self.callback (/Users/willin/Documents/w2fs/beian-domain/demo/node_modules/request/request.js:121:22)
at emitTwo (events.js:125:13)
at Request.emit (events.js:213:7)
at Request.<anonymous> (/Users/willin/Documents/w2fs/beian-domain/demo/node_modules/request/request.js:978:14)
at emitOne (events.js:120:20)