无法在边缘浏览器中启动 URL(使用 replit 平台)- Selenium Python

发布于 2025-01-16 19:57:25 字数 341 浏览 3 评论 0原文

我尝试在 Edge 浏览器中使用 selenium 使用 replit 在线平台进行网页抓取。 repllit 自动安装 selenium 4.1.3 但我找不到 msedge-selenium-tools 支持此版本。 selenium ( 3.141) 错误如何安装 selenium (3.141) 以支持 msedge-selenium-tools?

任何帮助将不胜感激。

谢谢 比贝克

I tried to use replit online platform for web scraping using selenium in Edge browser. replit automatically install selenium 4.1.3 but I couldn't find msedge-selenium-tools to support this version.
selenium (3.141) Error
How can I install selenium (3.141) to support msedge-selenium-tools?

Any help will be highly appreciated.

Thank You
Bibek

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白龙吟 2025-01-23 19:57:25

我对这个在线IDE了解不多,但我做了一些测试,发现它似乎可以通过 pyproject.toml 文件中的配置来控制引用包的版本。

首先,卸载已安装软件包中的selenium 4.1.3。当安装edge-selenium-tools包时,你会发现它捆绑了与edge-selenium-tools一起安装的selenium 3.141。其次,在 pyproject.toml 文件中添加此行。

selenium = "^3.141.0"

像这样的东西:

在此处输入图像描述

另外,有关 IDE replit 的更多问题,我建议您在 其社区,我认为可能会有更相关经验的人可以回答您的问题。

I don't know much about this online IDE, but I did some testing and found that it seems to be able to control the version of the referenced package via a configuration in the pyproject.toml file.

First, uninstall selenium 4.1.3 in installed Packages. When installing edge-selenium-tools package, you will find that it bundles selenium 3.141 installed with edge-selenium-tools. Second, add this line in pyproject.toml file.

selenium = "^3.141.0"

Something like this:

enter image description here

In addition, for more questions related to IDE replit, I suggest you post your questions in its community, I think there may be someone with more relevant experience who can answer your questions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文