Methods for passing messages to python scripts

I'm working on a racket project that involves parsing rss feeds. With no disrespect to Racket's xml package, I'd like to be able to use Python's feedparser library to handle the raw rss.

Are there any common ways to, say, pass a python script a url from Racket and have the Racket program receive a JSON object from the python script?

1 Like

Either use one of the subprocess procedures and capture script output, or take a look at GitHub - soegaard/pyffi: Use Python from Racket

4 Likes

Update on this: I ended up finding all the port management required for subprocess to be far too fiddly, and I decided to do all the xml parsing in Racket.