As the question suggests I'm trying to find a way using JavaScript to send some data to a local python server. I know that using javascript. I know that browser JS can't import any libraries via "Require". Does anyone know of a method using JS on its own?
1 Answer
Yes.
Make your Python app listen for HTTP requests, and then use the Fetch API from JavaScript.
1 Comment
Greg
This should work. Flask would be the best bet for a quick and easy local server