nodejs爬蟲
// http.get(url,function(res){
// var html = "";
// // console.log(res.statusCode);
// //res是請求回來的數據存儲
// res.on("data",function(chunk){
// html += chunk;
// })
// res.on("end",function(){
// var $ = cheerio.load(html);
// // console.log($("#right a"))
// $("#right a").each(function(){
// console.log($(this).attr("href"));
// })
// })
// //cheerio包 nodejs的正則擴展包
// }).on("error",function(err){
// //錯誤信息處理 err存儲錯誤的信息
// // console.log(err);
// });
浙公網安備 33010602011771號