作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 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/
我是一名优秀的程序员,十分优秀!