简体   繁体   English

如何让 python selenium webdriver 脚本 24/7 全天候运行?

[英]How can I have a python selenium webdriver script run 24/7?

I'm new to programming, this being my first post, but I was wondering if there was a way to make selenium run while my computer is turned off?我是编程新手,这是我的第一篇文章,但我想知道是否有办法让 selenium 在我的计算机关闭时运行? I made an instagram bot with selenium webdriver python but it only runs when I run it from my computer and turns off when I turn off my computer.我用 selenium webdriver python 制作了一个 instagram 机器人,但它只在我从我的电脑上运行它时运行,并在我关闭我的电脑时关闭。 I have seen post saying to host it in PythonAnywhere which I tried but selenium requires a webdriver (im using firefox so gekodriver).我看过帖子说在我尝试过的 PythonAnywhere 中托管它,但 selenium 需要一个 webdriver(我使用的是 firefox 所以 gekodriver)。 Is there a way of fixing this or is there another way of making an insagram bot without selenium webdriver?有没有办法解决这个问题,或者有没有另一种方法可以在没有 selenium webdriver 的情况下制作 insagram 机器人? Thank you谢谢

您可以使用虚拟机并托管服务器,然后通过 DevOps 管道(Azure Pipelines/Jenkins)让您的脚本无需人工干预即可运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 selenium webdriver 24/7 运行 python 脚本 - How to run a python script 24/7 with selenium webdriver 如何让Python脚本24/7全天候运行 - How to have a Python Script run 24/7 如何在AWS Lambda 24/7上运行python脚本 - How can I run my python script on AWS lambda 24/7 如何 24/7 全天候运行 selenium Web 驱动程序脚本 - How do I run a selenium web driver script 24/7 如何在云中运行 Selenium Python 脚本? - How can I run a Selenium Python Script in the Cloud? 如何使用 Python 在 Selenium 中同时运行多个 webdriver 进程? - How can I run multiple webdriver processes concurrently in Selenium using Python? 嗨,我想在浏览器堆栈中运行 selenium python 脚本,并想在移动设备中检查任何人有任何解决方案我们怎么能 - hi i want to run selenium python script in browser stack and want to check in mobile any one have any solution how we can 因此,当我通过jenkins运行python硒脚本时,应该如何编写“ driver = webdriver.Chrome()”? - So when I run my python selenium script through jenkins, how should I write the 'driver = webdriver.Chrome()'? 如何在在线 Python 解释器上使用 Webdriver 运行 Selenium? - How to run Selenium with Webdriver on Online Python interpreters? 我如何在Python中从selenium.webdriver获取HTML? - How can i get html from selenium.webdriver in Python?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM