# Methods for passing messages to python scripts

**URL:** <https://racket.discourse.group/t/methods-for-passing-messages-to-python-scripts/2402>\
**Category:** Questions & Answers\
**Tags:** question\
**Created:** [October 19, 2023, 3:40pm UTC](https://racket.discourse.group/t/methods-for-passing-messages-to-python-scripts/2402 "2023-10-19T15:40:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thrilway](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/thrilway/32/1398_2.png) [@thrilway](https://racket.discourse.group/u/thrilway)\
**Post date:** [October 19, 2023, 3:40pm UTC](https://racket.discourse.group/t/methods-for-passing-messages-to-python-scripts/2402/1 "2023-10-19T15:40:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![benknoble](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/benknoble/32/16_2.png) [@benknoble](https://racket.discourse.group/u/benknoble)\
**Post date:** [October 19, 2023, 4:30pm UTC](https://racket.discourse.group/t/methods-for-passing-messages-to-python-scripts/2402/2 "2023-10-19T16:30:03Z")

</div>

Either use one of the subprocess procedures and capture script output, or take a look at [GitHub - soegaard/pyffi: Use Python from Racket](https://github.com/soegaard/pyffi)

---

<div class="post-metadata">

**Author:** ![thrilway](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/thrilway/32/1398_2.png) [@thrilway](https://racket.discourse.group/u/thrilway)\
**Post date:** [November 6, 2023, 6:21pm UTC](https://racket.discourse.group/t/methods-for-passing-messages-to-python-scripts/2402/3 "2023-11-06T18:21:42Z")

</div>

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.
