노드 페이지를 사용하여 HTML 페이지에서 텍스트를 가져 오려고합니다.node.js를 사용하여 html 페이지에서 페이지 데이터 가져 오기
여기에 URL이 있습니다. 이 URL에서 나는이 방법을 시도 0e783d248f0e27408d3a6c043f44f337c54235ce .
문자열을 얻고 싶은 것은 모든 데이터가
var getGitKey = function (context, callback) {
http.get("gggg/status", function(res) {
var data = "";
res.on('data', function (chunk) {
data += chunk;
});
res.on("end", function() {
console.log("DATA-------------------------------");
console.log(data);
callback(data);
});
}).on("error", function() {
// callback(null);
});
};
내 코드
어디에서 익명 기능을 호출합니까? – mithunsatheesh
나는 didnt를 얻는다./ – Sush
나는 나의 대답에서 그것을 아래에서 설명했다. – mithunsatheesh