Doe anybody have any experience integrating a Rails app with a web scraper? It seems like the Python Scrapy project is far more advanced than anything in Ruby, and I already have some legacy code for it, so it would make sense to keep it. The Rails app runs on Heroku, and the Scrapy app can run on AWS. So here’s my questions:
-
Does it make sense to have the Scrapy app directly modify the Heroku Rails database? I can imagine using a REST API or maybe Rabbit MQ to send the data, but what would be the gain?
-
Assuming that the Scrapy app will directly access the Heroku Rails database, would it makes sense to let Rails handle all DB migrations, and if so, then to have the Scrapy python code in the same git repository, say under a directory called python/scrapy. It’s a tiny amount of code.
Does my proposed “architecture” make sense?