|
|
@ -134,7 +134,7 @@ function execute(cmd) { //调用cmd命令
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
app.post('/check', function (req, res) {
|
|
|
|
app.post('/check', function (req, res) {
|
|
|
|
execute('python connect.py --ip 127.0.0.1 --port 7777 --word computer');
|
|
|
|
execute('python connect.py --ip 127.0.0.1 --port 7777 crawling --word computer');
|
|
|
|
fs.readFile('./result.txt', 'utf-8', function (err, data) {
|
|
|
|
fs.readFile('./result.txt', 'utf-8', function (err, data) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
console.error(err);
|
|
|
|
console.error(err);
|
|
|
|