Hey there! I'm trying to fully automate the update process for our Telegraf service on a Windows server. The challenge I'm facing is that the SHA256 file is hidden behind a JavaScript button, which makes it tricky to grab programmatically. Has anyone found a way to automate the download and verification of the latest SHA file for Telegraf? I've got most of it set up, but this JS component is really slowing me down.
4 Answers
Check out this URL: https://www.influxdata.com/versions.json. It should have the data you're looking for!
Could you provide the URL? That might help in finding a solution to grab the SHA file.
You might want to try using Selenium for this; it's great for handling web pages with dynamic content.
You could also use the GitHub API to retrieve Telegraf’s SHA256 directly. If that's not an option, Puppeteer is another tool that can manage the JS button for you.
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String