java里面的Scrapy? [英] Scrapy inside java?

查看:43
本文介绍了java里面的Scrapy?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 Java 项目中使用 Scrapy?

Is it possible to use Scrapy from within a Java project?

以 Jython 为例,或者可能是间接"解决方案.

With Jython for example, or maybe "indirect" solutions.

推荐答案

我怀疑你是否可以在 jython 下运行twisted,而scrapy 是基于twisted 的.不确定你想做什么,但我建议运行scrapyd并使用web服务接口与java进行通信.你能告诉我们更多关于你想要实现的目标的细节吗?

I doubt you can run twisted under jython and scrapy is based on twisted. Not sure what you want to do but I recommend to run scrapyd and use the web service interface to communicate with java. Can you give us more details on what you want to achieve?

这篇关于java里面的Scrapy?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆