[英]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.