Skip to content Skip to sidebar Skip to footer

How To Call Python Script Form Java Class

I have a java web app where i need to use a simple web crawler to read html from webpages. I could not find any simple solution for this in java. But got a very simple python scrip

Solution 1:

First check out Calling Python in Java?

Another approach might be to call the python interpreter from the command line with a Java Process. See Java Process with Input/Output Stream and Call python script within java code (runtime.exec)

Post a Comment for "How To Call Python Script Form Java Class"