如何在portia中呈现javascript页面?

如何在portia中呈现javascript页面?,javascript,python-2.7,scrapy,portia,scrapinghub,Javascript,Python 2.7,Scrapy,Portia,Scrapinghub,我使用portia使用scrapinghub/splash中间件呈现JavaScript页面。但在portia中加载作业页面时出现以下错误 错误: 为此,您的web浏览器必须启用JavaScript 应用程序以正确显示 平台:portia scrapy+scrapinghub/splash 请让我知道如何在mozila firefox中解决此错误 注: 我还尝试了以下说明: 1. In the address bar, type about:config and press Enter. 2.

我使用portia使用scrapinghub/splash中间件呈现JavaScript页面。但在portia中加载作业页面时出现以下错误

错误:

为此,您的web浏览器必须启用JavaScript 应用程序以正确显示

平台:portia scrapy+scrapinghub/splash

请让我知道如何在mozila firefox中解决此错误

注: 我还尝试了以下说明:

1. In the address bar, type about:config and press Enter.
2. Click "I'll be careful, I promise" if a warning message appears.
3. In the search box, search for javascript.enabled
Toggle the "javascript.enabled" preference (right-click and select "Toggle" or double-click the preference) to change the value from "false" to "true".

目前还没有官方支持将splash与Portia结合使用,但添加对它的支持是一项高度优先的任务


如果您想使用splash简单地呈现页面,您可以通过将splash中间件添加到Portia项目设置中来实现。

是的,我正在使用scrapy文件夹中的splash中间件,但它会出现错误“您的web浏览器必须启用JavaScript才能正确显示此应用程序。”。谢谢,您是如何在项目中配置splash的?DOWNLOADER_middleware={'xxxx.middleware.splash.SplashMiddleware':725,}看起来您的设置没有导入到slyd中。为此,您可以创建一个名为
local\u settings.py
的新文件,并让它从您的spider
从xxxxx导入您的所有设置。settings import*
然后它也应该被Portia UIS中的spider使用。请告诉我我是否可以将其发布在“Portia master\slyd\slyd\local\u settings”或“”portia master\slyd\local_设置“”。。我两种方法都试过了。这似乎是同样的错误。。