截图抓取电子邮件工具

发布于 2024-09-10 02:00:39 字数 196 浏览 9 评论 0原文

我有一个网站,其中嵌入了外部生成的各种图表。有时这些图表将无法生成,我想在发生这种情况时捕获它。这些图表嵌入在多个页面中,我宁愿不手动检查每个页面。是否有任何类型的工具或浏览器插件可以定期截取不同 URL 的屏幕截图并通过电子邮件将其发送到一封电子邮件中?如果每天通过电子邮件将整页的缩小屏幕截图发送给我就足够了,这样我就可以快速浏览一下,发现所有图表都在那里并且看起来还不错。

I have a web site with various graphs embedded in it that are generated externally. Occasionally those graphs will fail to generate and I would like to catch that when it happens. These graphs are embedded in multiple pages and I would rather not check each page manually. Is there any kind of tool or perhaps a browser addon that could periodically take screenshots of different URLs and email them in a single email? It would be sufficient to have scaled-down screenshots of full pages emailed maybe once a day to me, allowing me to take a quick glance and see that all the graphs are there and look okay.

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

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

发布评论

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

评论(1

国际总奸 2024-09-17 02:00:39

我是自动化的忠实粉丝。您不必查看生成的电子邮件,而是查看“替换中的自定义缺失图像” jquery'.这将为每个失败的图像运行一段 Javascript。扩展它以向您控制的 URL 发出请求,其中可能还包括损坏的 URL(或仅损坏的文件名),这不会太难。然后,该 URL 将生成一封电子邮件,并存储损坏的 URL,以便在您的页面出现大量点击时,它不会发送 5000 封电子邮件。

建立在上述基础上的另一个想法是有效地将外部 404 从源站点更改为本地站点(例如 /backend/missing-images/) - 完整路径不需要存在 - 您只是在您的目录中生成本地 404 记录阿帕奇日志。 Logwatch 每天都会向您发送 apache 日志中的 404 页面列表(或者更频繁,如果您想要)通过电子邮件。

I'm a big fan of automation. Rather than have emails generated that you then have to look at, take a look at 'replacing custom missing images in jquery'. This will run a piece of Javascript for each image that fails. Extending that to make a request to a URL that you control, which may also include the broken URL (or just the filename that is broken) would not be too hard. That URL would then generate an email, and store the broken URL so that it doesn't send 5000 emails if there's a flurry of hits to your page.

Another idea building on the above is to effectively change the external 404 from the source site to a local one (eg /backend/missing-images/) - the full-path need not exist - you are just generating a local 404 record in your apache logs. Logwatch will send a list of 404 pages from the apache log to you daily (or more often, if you want) by email.

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