带有scrapy python的.net框架 [英] .net framework with scrapy python
本文介绍了带有scrapy python的.net框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将 .NET 框架与 Python scrapy 框架一起使用来从不同站点抓取数据?我正在做我最后一年的项目,我想使用 C# 作为前端语言和 Python 来抓取数据.
Is it possible to use .NET framework with the Python scrapy framework to scrape data from different sites? I am working on my final year project in which I want to use C# as front end language and Python for scraping the data.
推荐答案
我不认为这是可能的,因为 Scrapy 使用了扭曲的网络引擎 不能在 IronPython 上运行
I don't think it is possible, because Scrapy uses twisted networking engine which can not run on IronPython
或者,您可以使用 C# 通过命令行启动蜘蛛/爬虫,然后使用 JSON API
Alternatively, you may start your spider/crawler through command line using C# and then interact with it using JSON API
这篇关于带有scrapy python的.net框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文