3

I have a rails application hosted in heroku. I also wrote a web scraper using scrapy in python. I need to run the python script from the rails application in heroku,I will explain with an example.

Eg:The user will input the url to scrape in my rails app.Then the rails app give control to python script to scrape data which sends response as json object.Then we have to render the json result in the web app.I have to host this application in heroku.

1 Answer 1

3

There is a great gem called rubypython. It embeds a running Python interpreter in the Ruby application.

FYI their homepage

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.