저는 초보자이며 node.io를 사용하여이 페이지의 내용을 긁어 모으기 위해 할당했습니다.
http://www.nycourts.gov/reporter/3dseries/2013/2013_06966.htm.JS/Node : node.io를 사용하여 태그 선택
< 이하의 텍스트 콘텐츠를 변수에있는 문자열로 저장하고 싶습니다. 이 화면이 표시되어
var nodeio = require('node.io'); var methods = { input: false, run: function() { this.getHtml(' http://www.nycourts.gov/reporter/3dseries/2013/2013_06966.htm ', function(err, $) {
//Handle any request/parsing errors if (err) this.exit(err); var content = $('P'); this.emit(content); }); } }
exports.job = new nodeio.Job({timeout:10}, methods);
오류 :
내 코드는 없다 'P'를과 일치하는 요소. 제발 도와주세요 ..
감사합니다 shawnzhu – Rajat