gpt4 book ai didi

python - 在 Python-Scrapy 中执行 Js 的 Selenium 替代品是什么?

转载 作者:太空狗 更新时间:2023-10-30 01:44:21 31 4
gpt4 key购买 nike

我想在 Python-Scrapy 中执行 JavaScript 的功能,之前,我使用了 Selenium,但是 Selenium 对于抓取大型站点来说太慢了。

我想知道在 Scrapy 中执行 js 的 selenium 的最佳替代品是什么?

最佳答案

Splash - A javascript rendering service

Splash is a javascript rendering service with an HTTP API. It's a lightweight browser with an HTTP API, implemented in Python using Twisted and QT.

It's fast, lightweight and state-less which makes it easy to distribute.

由开发 Scrapy 的同一个人开发的奖励积分。

关于python - 在 Python-Scrapy 中执行 Js 的 Selenium 替代品是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41330140/

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