gpt4 book ai didi

javascript - 如何在portia中渲染javascript页面?

转载 作者:行者123 更新时间:2023-11-28 00:40:18 25 4
gpt4 key购买 nike

我正在使用 portia 通过 scrapinghub/splash 中间件来渲染 JavaScript 页面。但在 portia 中加载作业页面时似乎出现以下错误。

错误:

Your web browser must have JavaScript enabledin order for this application to display correctly.

平台: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结合使用,但添加对其的支持是当务之急。

https://github.com/scrapinghub/portia/issues/2

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

关于javascript - 如何在portia中渲染javascript页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28026267/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com