test.js 393 Bytes
const {PythonShell} = require('python-shell');
let iconv = require('iconv-lite');
let fs = require('fs');

var options = {
  mode: 'text',
  pythonOptions: ['-u'],
  scriptPath: '',
  args: ["영통1동"],
  pythonPath: ''
};

var test = new PythonShell('recommend_clothes.py', options);
var data='"영통1동"';
test.send(data);
test.on('message',function(message){
  console.log(message);
})