We've actually developed a way that you can convert Portia projects into Scrapy spiders: https://blog.scrapinghub.com/2016/06/29/introducing-portia2c...
and since this is all open source, here's a link to GitHub: https://github.com/scrapinghub/portia2code