How can I automate downloading the SHA256 file for Telegraf?

0
3
Asked By TechieNinja42 On

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

Answered By JsonKing23 On

Check out this URL: https://www.influxdata.com/versions.json. It should have the data you're looking for!

Answered By QueryMaster88 On

Could you provide the URL? That might help in finding a solution to grab the SHA file.

Answered By CodeWhiz101 On

You might want to try using Selenium for this; it's great for handling web pages with dynamic content.

Answered By DevOpsDiva77 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.