Wednesday, 7 June 2017

Invoking python script from node.js http server and get json response

Considering I'm new to Node.js , I want to create a HTTP server using Node.js such that it send's request to some python script with url https://localhost:8080/?key1=xxx&key2=yyy ; Then the python program will take xxx and yyy parameters as input and perform some action and return json back to node.js. I'm completely done with Python script.I know how to start server in node.js but I need some quick guide how will I send these parameters to the url and invoke the python script.

I have read about python-shell on https://github.com/extrabacon/python-shell, but It has nothing to do with server.Please give suggestion.



via Nikita Gupta

No comments:

Post a Comment