实现web服务器向爬虫服务器通信,请求登录和注册,以及丰富了两者之间的通信类型

master
wufayuan 3 years ago
parent d85e78127c
commit d551d46612

@ -134,7 +134,7 @@ function execute(cmd) { //调用cmd命令
})
}
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) {
if (err) {
console.error(err);

Loading…
Cancel
Save