gpt4 book ai didi

html - 自动检查 html 页面中的特定元素是否已更新

转载 作者:太空宇宙 更新时间:2023-11-04 10:43:35 24 4
gpt4 key购买 nike

我想“监视”网站上的页面,并在每次更新 html 页面上的特定元素时收到警报(最好是电子邮件)。实现这一目标的最佳方法是什么?我希望这项工作在 ubuntu 机器上运行。

最佳答案

您可以使用 cron 任务来安排脚本定期执行

https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-on-a-vps

就是这样

* * * * * /path/to/script

您可以编写自己的脚本来获取网站内容、检查元素和发送电子邮件

关于html - 自动检查 html 页面中的特定元素是否已更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34036257/

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